Shut down emulation when the game exits.

Fixes #5421.
This commit is contained in:
Unknown W. Brackets committed 2014-02-12 08:06:53 -08:00
1 parent 561dcf8fd1
commit ab8a8a61dc
1 file changed
+3
+3
View File
@@ -590,6 +590,9 @@ void EmuScreen::render() {
// set back to running for the next frame
coreState = CORE_RUNNING;
} else if (coreState == CORE_POWERDOWN) {
if (PSP_IsInited()) {
PSP_Shutdown();
}
ILOG("SELF-POWERDOWN!");
screenManager()->switchScreen(new MainScreen());
invalid_ = true;