mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-27 15:30:35 +00:00
Check for missing SAVEDATA_PARAMS.
This commit is contained in:
parent
30f8ec447a
commit
0b22d8f56c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user