Start experimenting with DocumentsContract (the thing DocumentFile wraps)

wip

Some progress towards making the file browser work with DOCUMENT_TREE

More directory browsing progress

More Scoped Storage hackery. Can now browse to a folder and use PPSSPP's game browser to load ISOs from it.

Remove the defunct fdopendir approach. Buildfixes.
This commit is contained in:
Henrik Rydgård committed 2021-06-07 00:24:51 +02:00
1 parent 5030f1f719
commit 87a25fd230
13 files changed
+152 -55

No files matched your search

+4 -4
View File
@@ -482,13 +482,13 @@ void NativeInit(int argc, const char *argv[], const char *savegame_dir, const ch
host = new NativeHost();
}
#endif
if (System_GetPropertyBool(SYSPROP_ANDROID_SCOPED_STORAGE)) {
g_Config.externalDirectory = Path(external_dir);
#if PPSSPP_PLATFORM(ANDROID)
if (System_GetPropertyBool(SYSPROP_ANDROID_SCOPED_STORAGE)) {
g_Config.externalDirectory = Path(g_extFilesDir);
#endif
} else {
g_Config.externalDirectory = Path(external_dir);
}
#endif
g_Config.defaultCurrentDirectory = Path("/");
g_Config.internalDataDirectory = Path(savegame_dir);