mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 21:39:52 +00:00
Fix mistake from savestates breaking saving.
Clear after, not first. Was killing the count.
This commit is contained in:
parent
cff6d155f1
commit
ca4c767d38
@ -500,6 +500,8 @@ int SavedataParam::SetPspParam(SceUtilitySavedataParam *param)
|
||||
char (*saveNameListData)[20];
|
||||
if (param->saveNameList != 0)
|
||||
{
|
||||
Clear();
|
||||
|
||||
saveNameListData = (char(*)[20])Memory::GetPointer(param->saveNameList);
|
||||
|
||||
// Get number of fileName in array
|
||||
@ -509,7 +511,6 @@ int SavedataParam::SetPspParam(SceUtilitySavedataParam *param)
|
||||
saveDataListCount++;
|
||||
} while(saveNameListData[saveDataListCount][0] != 0);
|
||||
|
||||
Clear();
|
||||
saveDataList = new SaveFileInfo[saveDataListCount];
|
||||
|
||||
// get and stock file info for each file
|
||||
|
Loading…
Reference in New Issue
Block a user