From ca4c767d3851c3c45207aba9f81c9d9f1a1c60f1 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Mon, 31 Dec 2012 15:39:49 -0800 Subject: [PATCH] Fix mistake from savestates breaking saving. Clear after, not first. Was killing the count. --- Core/Dialog/SavedataParam.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Core/Dialog/SavedataParam.cpp b/Core/Dialog/SavedataParam.cpp index 54d32fef4e..52afb9c19f 100644 --- a/Core/Dialog/SavedataParam.cpp +++ b/Core/Dialog/SavedataParam.cpp @@ -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