Fix multiple issues preventing in-game saves from working.

This commit is contained in:
Henrik Rydgård committed 2021-07-19 17:34:51 +02:00
1 parent 2f04fc1c00
commit e73e0dc0be
5 files changed
+83 -29

No files matched your search

+2 -2
View File
@@ -208,12 +208,12 @@ void SavedataParam::Init()
pspFileSystem.MkDir(savePath);
}
// Create a nomedia file to hide save icons form Android image viewer
#ifdef __ANDROID__
#if PPSSPP_PLATFORM(ANDROID)
int handle = pspFileSystem.OpenFile(savePath + ".nomedia", (FileAccess)(FILEACCESS_CREATE | FILEACCESS_WRITE), 0);
if (handle >= 0) {
pspFileSystem.CloseFile(handle);
} else {
ERROR_LOG(IO, "Failed to create .nomedia file");
INFO_LOG(IO, "Failed to create .nomedia file (might be ok if it already exists)");
}
#endif
}