From 2650ddae759cb62054ffe285ae3eba03281d4733 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 28 Oct 2018 12:35:54 -0700 Subject: [PATCH] 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. --- Core/Dialog/SavedataParam.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Core/Dialog/SavedataParam.cpp b/Core/Dialog/SavedataParam.cpp index a137e779f7..dadc46b1c4 100644 --- a/Core/Dialog/SavedataParam.cpp +++ b/Core/Dialog/SavedataParam.cpp @@ -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);