Avoid accurately computing disk space on iOS and Android (where it can be slow). Add a setting.

This commit is contained in:
Henrik Rydgård committed 2026-07-14 22:22:29 +02:00
1 parent a6516c8d66
commit 993c3a9c67
58 files changed
+81 -6

No files matched your search

+5
View File
@@ -1286,6 +1286,11 @@ void GameSettingsScreen::CreateSystemSettings(UI::ViewGroup *systemSettings) {
SavePathInOtherChoice->OnClick.Handle(this, &GameSettingsScreen::OnMemoryStickOther);
const bool myDocsExists = W32Util::UserDocumentsPath().size() != 0;
if (!System_GetPropertyBool(SYSPROP_CAN_GET_FREE_SPACE_FAST)) {
// It might be slow, so use an option.
systemSettings->Add(new CheckBox(&g_Config.bReportAccurateFreeStorageSpace, sy->T("Report free storage space accurately")));
}
const Path &PPSSPPpath = File::GetExeDirectory();
const Path installedFile = PPSSPPpath / "installed.txt";
installed_ = File::Exists(installedFile);