Permalink
Browse files

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.
  • Loading branch information...
unknownbrackets committed Oct 28, 2018
1 parent 5ea935f commit 2650ddae759cb62054ffe285ae3eba03281d4733
Showing with 1 addition and 0 deletions.
  1. +1 −0 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);

0 comments on commit 2650dda

Please sign in to comment.