CPU_Init: Bail out earlier if we fail to identify a file.

This commit is contained in:
Henrik Rydgård committed 2024-10-31 23:56:36 +01:00
1 parent f690cb99a4
commit e93427c433
3 files changed
+11 -4

No files matched your search

+2 -2
View File
@@ -289,8 +289,8 @@ bool CPU_Init(std::string *errorString, FileLoader *loadedFile) {
break;
default:
// Can we even get here?
WARN_LOG(Log::Loader, "CPU_Init didn't recognize file. %s", errorString->c_str());
break;
ERROR_LOG(Log::Loader, "CPU_Init didn't recognize file. %s", errorString->c_str());
return false;
}
// Here we have read the PARAM.SFO, let's see if we need any compatibility overrides.