mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-27 16:23:35 +01:00
Core: Wait for background CPU load on exit.
This prevents crashes when exiting a game while loading is still in progress. See #11516.
This commit is contained in:
1 parent
5ea935f4bf
commit
670e207c57
5 files changed
+41
-1
No files matched your search
@@ -258,6 +258,7 @@ bool LoadFile(FileLoader **fileLoaderPtr, std::string *error_string) {
|
||||
}
|
||||
else if (ebootType == IdentifiedFileType::PSP_PS1_PBP) {
|
||||
*error_string = "PS1 EBOOTs are not supported by PPSSPP.";
|
||||
coreState = CORE_ERROR;
|
||||
return false;
|
||||
}
|
||||
std::string path = fileLoader->Path();
|
||||
@@ -269,6 +270,7 @@ bool LoadFile(FileLoader **fileLoaderPtr, std::string *error_string) {
|
||||
return Load_PSP_ELF_PBP(fileLoader, error_string);
|
||||
} else {
|
||||
*error_string = "No EBOOT.PBP, misidentified game";
|
||||
coreState = CORE_ERROR;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -347,5 +349,7 @@ bool LoadFile(FileLoader **fileLoaderPtr, std::string *error_string) {
|
||||
*error_string = "Failed to identify file";
|
||||
break;
|
||||
}
|
||||
|
||||
coreState = CORE_ERROR;
|
||||
return false;
|
||||
}
|
||||
Reference in new issue
Block a user