Merge pull request #16146 from unknownbrackets/debugger

UI: Prevent rendering during reboot
This commit is contained in:
Henrik Rydgård authored and GitHub committed 2022-10-02 16:43:58 +02:00
commit 33f24efb2b
1 file changed
+14
+14
View File
@@ -224,6 +224,15 @@ bool EmuScreen::bootAllowStorage(const Path &filename) {
}
void EmuScreen::bootGame(const Path &filename) {
if (PSP_IsRebooting())
return;
if (PSP_IsInited()) {
bootPending_ = false;
invalid_ = false;
bootComplete();
return;
}
if (PSP_IsIniting()) {
std::string error_string;
bootPending_ = !PSP_InitUpdate(&error_string);
@@ -1097,6 +1106,11 @@ void EmuScreen::update() {
}
void EmuScreen::checkPowerDown() {
if (PSP_IsRebooting()) {
bootPending_ = true;
invalid_ = true;
}
if (coreState == CORE_POWERDOWN && !PSP_IsIniting() && !PSP_IsRebooting()) {
if (PSP_IsInited()) {
PSP_Shutdown();