Bubble up CSO corruption errors so the user can see them

This commit is contained in:
Henrik Rydgård committed 2026-02-03 11:57:05 +01:00
1 parent 64fcce3e69
commit 998d385119
4 files changed
+12 -1

No files matched your search

+3 -1
View File
@@ -340,7 +340,9 @@ static bool CPU_Init(FileLoader *fileLoader, IdentifiedFileType type, std::strin
// Trying to boot other things lands us here. We need to return a sensible error string.
ERROR_LOG(Log::Loader, "CPU_Init didn't recognize file. %s", errorString->c_str());
auto sy = GetI18NCategory(I18NCat::SYSTEM);
*errorString = sy->T("Not a PSP game");
if (errorString->empty()) {
*errorString = sy->T("Not a PSP game");
}
return false;
}
}