Savedata: Write only one secure entry.

Before, we were filling all the entries when the first file was saved, a
regression from 1976be4.  This caused issues in games that use a single
savedata folder for multiple secure files, such as Valkyria Chronicles 3.
This commit is contained in:
Unknown W. Brackets 2018-10-28 12:35:54 -07:00
parent 5ea935f4bf
commit 2650ddae75

View File

@ -471,6 +471,7 @@ int SavedataParam::Save(SceUtilitySavedataParam* param, const std::string &saveD
snprintf(entry->filename, sizeof(entry->filename), "%s", saveFilename.c_str());
memcpy(entry->hash, cryptedHash, 16);
break;
}
}
sfoFile.SetValue("SAVEDATA_FILE_LIST", (u8 *)updatedList, FILE_LIST_TOTAL_SIZE, (int)FILE_LIST_TOTAL_SIZE);