Shut down emulation when the game exits.

Fixes #5421.
This commit is contained in:
Unknown W. Brackets 2014-02-12 08:06:53 -08:00
parent 561dcf8fd1
commit ab8a8a61dc

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;