mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-03-04 20:27:57 +00:00
Quick fix for savedata.
This commit is contained in:
parent
397f3fcdec
commit
a93fe94afc
@ -1098,12 +1098,12 @@ int SavedataParam::SetPspParam(SceUtilitySavedataParam *param)
|
|||||||
for (int i = 0; i < saveDataListCount; i++) {
|
for (int i = 0; i < saveDataListCount; i++) {
|
||||||
// "<>" means saveName can be anything...
|
// "<>" means saveName can be anything...
|
||||||
if (strcmp(saveNameListData[i], "<>") == 0) {
|
if (strcmp(saveNameListData[i], "<>") == 0) {
|
||||||
std::string fileDataPath = "";
|
std::string fileDataPath = "";
|
||||||
|
// TODO:Maybe we need a way to reorder the files...
|
||||||
auto allSaves = pspFileSystem.GetDirListing(savePath);
|
auto allSaves = pspFileSystem.GetDirListing(savePath);
|
||||||
std::string gameName = GetGameName(param);
|
std::string gameName = GetGameName(param);
|
||||||
std::string saveName = "";
|
std::string saveName = "";
|
||||||
for(auto it = allSaves.begin(); it != allSaves.end(); ++it) {
|
for(auto it = allSaves.begin(); it != allSaves.end(); ++it) {
|
||||||
|
|
||||||
if(strncmp(it->name.c_str(),gameName.c_str(),strlen(gameName.c_str())) == 0) {
|
if(strncmp(it->name.c_str(),gameName.c_str(),strlen(gameName.c_str())) == 0) {
|
||||||
saveName = it->name.substr(strlen(gameName.c_str()));
|
saveName = it->name.substr(strlen(gameName.c_str()));
|
||||||
|
|
||||||
@ -1118,9 +1118,8 @@ int SavedataParam::SetPspParam(SceUtilitySavedataParam *param)
|
|||||||
++realCount;
|
++realCount;
|
||||||
} else {
|
} else {
|
||||||
if (listEmptyFile) {
|
if (listEmptyFile) {
|
||||||
ClearFileInfo(saveDataList[realCount], saveName);
|
// If file doesn't exist,we only skip...
|
||||||
DEBUG_LOG(SCEUTILITY,"Don't Exist");
|
continue;
|
||||||
++realCount;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user