Merge pull request #11507 from t895/emulation-stop-fix

android: Return the correct status code on emulation stop
This commit is contained in:
Charles Lombardo 2023-09-14 23:22:00 -04:00 committed by GitHub
commit 958bed4545
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -327,12 +327,13 @@ public:
m_system.ShutdownMainProcess(); m_system.ShutdownMainProcess();
m_detached_tasks.WaitForAllTasks(); m_detached_tasks.WaitForAllTasks();
m_load_result = Core::SystemResultStatus::ErrorNotInitialized; m_load_result = Core::SystemResultStatus::ErrorNotInitialized;
m_window.reset();
OnEmulationStopped(Core::SystemResultStatus::Success);
return;
} }
// Tear down the render window. // Tear down the render window.
m_window.reset(); m_window.reset();
OnEmulationStopped(m_load_result);
} }
void PauseEmulation() { void PauseEmulation() {