Check for missing SAVEDATA_PARAMS.

This commit is contained in:
Unknown W. Brackets 2014-07-06 22:42:14 -07:00
parent 30f8ec447a
commit 0b22d8f56c

View File

@ -1599,6 +1599,9 @@ int SavedataParam::GetSaveCryptMode(SceUtilitySavedataParam* param, const std::s
// save created in PPSSPP and not encrypted has '0' in SAVEDATA_PARAMS
u32 tmpDataSize = 0;
const u8 *tmpDataOrig = sfoFile.GetValueData("SAVEDATA_PARAMS", &tmpDataSize);
if (tmpDataSize == 0 || !tmpDataOrig) {
return 0;
}
switch (tmpDataOrig[0]) {
case 0:
return 0;