mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 17:23:40 +01:00
If a focus mode is used with autoload, ignore it.
Before, if the "focused" save did not exist, we failed incorrectly, even though the actual save we were trying to load was the correct one.
This commit is contained in:
1 parent
b6b0ff793c
commit
348c6a16da
1 file changed
+5
-12
@@ -287,12 +287,8 @@ bool SavedataParam::Delete(SceUtilitySavedataParam* param, int saveId)
|
||||
}
|
||||
|
||||
std::string dirPath = GetSaveFilePath(param,saveId);
|
||||
if (saveId >= 0 && saveNameListDataCount > 0) // if user selection, use it
|
||||
{
|
||||
if (saveDataList[saveId].size == 0) // don't delete no existing file
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if (!pspFileSystem.GetFileInfo(dirPath).exists) {
|
||||
return false;
|
||||
}
|
||||
|
||||
pspFileSystem.RmDir(dirPath);
|
||||
@@ -506,12 +502,9 @@ bool SavedataParam::Load(SceUtilitySavedataParam *param, const std::string &save
|
||||
}
|
||||
|
||||
std::string dirPath = GetSaveFilePath(param, GetSaveDir(param, saveDirName));
|
||||
if (saveId >= 0 && saveNameListDataCount > 0) // if user selection, use it
|
||||
{
|
||||
if (saveDataList[saveId].size == 0) // don't read no existing file
|
||||
{
|
||||
return false;
|
||||
}
|
||||
std::string filePath = dirPath + "/" + GetFileName(param);
|
||||
if (!pspFileSystem.GetFileInfo(filePath).exists) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if(!LoadSaveData(param, saveDirName, dirPath, secureMode)) // Load main savedata
|
||||
|
||||
Reference in new issue
Block a user