diff options
Diffstat (limited to '')
| -rw-r--r-- | src/android/app/src/main/jni/native.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/android/app/src/main/jni/native.cpp b/src/android/app/src/main/jni/native.cpp index 8ac28b638..8a2021ff0 100644 --- a/src/android/app/src/main/jni/native.cpp +++ b/src/android/app/src/main/jni/native.cpp | |||
| @@ -327,12 +327,13 @@ public: | |||
| 327 | m_system.ShutdownMainProcess(); | 327 | m_system.ShutdownMainProcess(); |
| 328 | m_detached_tasks.WaitForAllTasks(); | 328 | m_detached_tasks.WaitForAllTasks(); |
| 329 | m_load_result = Core::SystemResultStatus::ErrorNotInitialized; | 329 | m_load_result = Core::SystemResultStatus::ErrorNotInitialized; |
| 330 | m_window.reset(); | ||
| 331 | OnEmulationStopped(Core::SystemResultStatus::Success); | ||
| 332 | return; | ||
| 330 | } | 333 | } |
| 331 | 334 | ||
| 332 | // Tear down the render window. | 335 | // Tear down the render window. |
| 333 | m_window.reset(); | 336 | m_window.reset(); |
| 334 | |||
| 335 | OnEmulationStopped(m_load_result); | ||
| 336 | } | 337 | } |
| 337 | 338 | ||
| 338 | void PauseEmulation() { | 339 | void PauseEmulation() { |