Simplification in EmuScreen.cpp

This commit is contained in:
Henrik Rydgård committed 2025-06-06 00:27:45 +02:00
1 parent 690ba81ab3
commit 11ad7db3cb
1 file changed
+1 -7
+1 -7
View File
@@ -1471,15 +1471,9 @@ void EmuScreen::update() {
bool EmuScreen::checkPowerDown() {
// This is for handling things like sceKernelExitGame().
if (coreState == CORE_POWERDOWN && PSP_GetBootState() == BootState::Complete && !bootPending_) {
bool shutdown = false;
if (PSP_IsInited()) {
Achievements::UnloadGame();
PSP_Shutdown(true);
shutdown = true;
}
INFO_LOG(Log::System, "SELF-POWERDOWN!");
screenManager()->switchScreen(new MainScreen());
return shutdown;
return true;
}
return false;
}