Merge pull request #13889 from unknownbrackets/ui-reset

Core: Properly stop on abrupt shutdown
This commit is contained in:
Henrik Rydgård authored and GitHub committed 2021-01-08 09:30:45 +01:00
commit 49a12c797b
2 files changed
+3 -1

No files matched your search

+1 -1
View File
@@ -493,7 +493,7 @@ void PSP_Shutdown() {
// Make sure things know right away that PSP memory, etc. is going away.
pspIsQuitting = true;
if (coreState == CORE_RUNNING)
Core_UpdateState(CORE_POWERDOWN);
Core_Stop();
#ifndef MOBILE_DEVICE
if (g_Config.bFuncHashMap) {
+2
View File
@@ -420,6 +420,8 @@ void EmuScreen::sendMessage(const char *message, const char *value) {
PSP_Shutdown();
bootPending_ = true;
gamePath_ = value;
// Don't leave it on CORE_POWERDOWN, we'll sometimes aggressively bail.
Core_UpdateState(CORE_POWERUP);
}
} else if (!strcmp(message, "config_loaded")) {
// In case we need to position touch controls differently.