From eccf23cf3b61a7942671135ce83009cfb9d43c2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Sat, 30 Nov 2024 02:51:48 +0100 Subject: [PATCH] Cleanup after prev PR --- Core/Dialog/SavedataParam.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Core/Dialog/SavedataParam.cpp b/Core/Dialog/SavedataParam.cpp index f5bd4c093f..d624cb7fef 100644 --- a/Core/Dialog/SavedataParam.cpp +++ b/Core/Dialog/SavedataParam.cpp @@ -1562,16 +1562,12 @@ int SavedataParam::SetPspParam(SceUtilitySavedataParam *param) // TODO: Filter away non-directories directly? std::vector allSaves = pspFileSystem.GetDirListing(savePath); - bool fetchedAllSaves = false; std::string gameName = GetGameName(param); for (int i = 0; i < saveDataListCount; i++) { // "<>" means saveName can be anything... if (strncmp(saveNameListData[i], "<>", ARRAY_SIZE(saveNameListData[i])) == 0) { - // TODO:Maybe we need a way to reorder the files? - if (!fetchedAllSaves) { - fetchedAllSaves = true; - } + // TODO: Maybe we need a way to reorder the files? for (auto it = allSaves.begin(); it != allSaves.end(); ++it) { if (it->name.compare(0, gameName.length(), gameName) == 0) { std::string saveName = it->name.substr(gameName.length()); @@ -1582,7 +1578,6 @@ int SavedataParam::SetPspParam(SceUtilitySavedataParam *param) std::string fileDataPath = savePath + it->name; if (it->exists) { SetFileInfo(realCount, *it, saveName); - DEBUG_LOG(Log::sceUtility, "%s Exist", fileDataPath.c_str()); ++realCount; } else { if (listEmptyFile) {