Actually fix the race condition. Can't do any initialization step while waiting.

This commit is contained in:
Henrik Rydgård committed 2023-07-24 12:08:15 +02:00
1 parent 3ae520c35d
commit a72c4aa383
2 files changed
+10 -6

No files matched your search

+6
View File
@@ -233,6 +233,11 @@ bool EmuScreen::bootAllowStorage(const Path &filename) {
void EmuScreen::bootGame(const Path &filename) {
auto sc = GetI18NCategory(I18NCat::SCREEN);
if (Achievements::IsBlockingExecution()) {
// Keep waiting.
return;
}
if (PSP_IsRebooting())
return;
if (PSP_IsInited()) {
@@ -244,6 +249,7 @@ void EmuScreen::bootGame(const Path &filename) {
if (PSP_IsIniting()) {
std::string error_string = "(unknown error)";
bootPending_ = !PSP_InitUpdate(&error_string);
if (!bootPending_) {