Merge pull request #5463 from unknownbrackets/savedata

If a focus mode is used with autoload (or similar), ignore it
This commit is contained in:
Henrik Rydgård committed 2014-02-15 19:12:26 +01:00
commit 0ebce17e7f
1 file changed
+5 -12
+5 -12
View File
@@ -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