mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-27 15:30:35 +00:00
Merge pull request #3616 from sum2012/patch-2
Fix Summon Night 5,when there is a save,make new game would crash
This commit is contained in:
commit
3d198694dd
@ -526,7 +526,8 @@ bool SavedataParam::Load(SceUtilitySavedataParam *param, const std::string &save
|
||||
|
||||
if(DecryptSave(decryptMode, data_base, &saveSize, &align_len, ((param->key[0] != 0)?cryptKey:0)) == 0)
|
||||
{
|
||||
memcpy(data_, data_base, saveSize);
|
||||
if (param->dataBuf.IsValid())
|
||||
memcpy(data_, data_base, saveSize);
|
||||
saveDone = true;
|
||||
}
|
||||
delete[] data_base;
|
||||
|
Loading…
Reference in New Issue
Block a user