mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-17 16:30:30 +02:00
Simplification in EmuScreen.cpp
This commit is contained in:
1 parent
690ba81ab3
commit
11ad7db3cb
1 file changed
+1
-7
+1
-7
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user