mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-13 01:29:41 +01:00
Merge pull request #16146 from unknownbrackets/debugger
UI: Prevent rendering during reboot
This commit is contained in:
1 file changed
+14
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user