mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Return an error in FILES based on SDK version.
Tested to require this exact version to return that error. Not sure if any games will actually hit this anyway, but they did with lower SDK versions.
This commit is contained in:
parent
279f375f9c
commit
b03ca7049b
1 changed files with 5 additions and 4 deletions
|
@ -1002,10 +1002,11 @@ int SavedataParam::GetFilesList(SceUtilitySavedataParam *param)
|
|||
ERROR_LOG_REPORT(SCEUTILITY, "SavedataParam::GetFilesList(): too many normal entries, %d", fileList->maxNormalEntries);
|
||||
return SCE_UTILITY_SAVEDATA_ERROR_RW_BAD_PARAMS;
|
||||
}
|
||||
// TODO: This may depend on sdk version or something? Not returned by default.
|
||||
if (false && fileList->systemEntries.IsValid() && fileList->maxSystemEntries > 5) {
|
||||
ERROR_LOG_REPORT(SCEUTILITY, "SavedataParam::GetFilesList(): too many system entries, %d", fileList->maxSystemEntries);
|
||||
return SCE_UTILITY_SAVEDATA_ERROR_RW_BAD_PARAMS;
|
||||
if (sceKernelGetCompiledSdkVersion() >= 0x02060000) {
|
||||
if (fileList->systemEntries.IsValid() && fileList->maxSystemEntries > 5) {
|
||||
ERROR_LOG_REPORT(SCEUTILITY, "SavedataParam::GetFilesList(): too many system entries, %d", fileList->maxSystemEntries);
|
||||
return SCE_UTILITY_SAVEDATA_ERROR_RW_BAD_PARAMS;
|
||||
}
|
||||
}
|
||||
|
||||
std::string dirPath = savePath + GetGameName(param) + GetSaveName(param);
|
||||
|
|
Loading…
Add table
Reference in a new issue