More work on AndroidStorageFileSystem.cpp. Fix current directory getting reset.

This commit is contained in:
Henrik Rydgård
2021-06-07 00:24:51 +02:00
parent ef607a5fe2
commit beb0b4e9f3
8 changed files with 102 additions and 82 deletions
+5 -1
View File
@@ -1240,7 +1240,11 @@ void Config::Load(const char *iniFileName, const char *controllerIniFilename) {
});
iRunCount++;
if (!File::Exists(Path(currentDirectory)))
// TODO: What layer's responsibility is it to handle content:// URIs?
// This check is probably not really necessary here anyway, you can always
// press Home or Browse if you're in a bad directory.
if (!File::Exists(currentDirectory))
currentDirectory = defaultCurrentDirectory;
Section *log = iniFile.GetOrCreateSection(logSectionName);