mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-11 05:26:24 +02:00
OpenXR - Integrate SYSPROP_HAS_FILE_BROWSER
This commit is contained in:
1 parent
c543c8fd52
commit
19ebbb6a30
2 files changed
+1
-3
No files matched your search
@@ -1131,11 +1131,9 @@ void MainScreen::CreateViews() {
|
||||
ver->SetSmall(true);
|
||||
ver->SetClip(false);
|
||||
|
||||
#ifndef OPENXR
|
||||
if (System_GetPropertyBool(SYSPROP_HAS_FILE_BROWSER)) {
|
||||
rightColumnItems->Add(new Choice(mm->T("Load", "Load...")))->OnClick.Handle(this, &MainScreen::OnLoadFile);
|
||||
}
|
||||
#endif
|
||||
rightColumnItems->Add(new Choice(mm->T("Game Settings", "Settings")))->OnClick.Handle(this, &MainScreen::OnGameSettings);
|
||||
rightColumnItems->Add(new Choice(mm->T("Credits")))->OnClick.Handle(this, &MainScreen::OnCredits);
|
||||
rightColumnItems->Add(new Choice(mm->T("www.ppsspp.org")))->OnClick.Handle(this, &MainScreen::OnPPSSPPOrg);
|
||||
|
||||
@@ -503,7 +503,7 @@ bool System_GetPropertyBool(SystemProperty prop) {
|
||||
case SYSPROP_HAS_FILE_BROWSER:
|
||||
// It's only really needed with scoped storage, but why not make it available
|
||||
// as far back as possible - works just fine.
|
||||
return androidVersion >= 19; // when ACTION_OPEN_DOCUMENT was added
|
||||
return (androidVersion >= 19) && (deviceType != DEVICE_TYPE_VR); // when ACTION_OPEN_DOCUMENT was added
|
||||
case SYSPROP_HAS_FOLDER_BROWSER:
|
||||
// Uses OPEN_DOCUMENT_TREE to let you select a folder.
|
||||
// Doesn't actually mean it's usable though, in many early versions of Android
|
||||
|
||||
Reference in new issue
Block a user