소스 검색

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

android: Return the correct status code on emulation stop
Charles Lombardo 2 년 전
부모
커밋
958bed4545
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      src/android/app/src/main/jni/native.cpp

+ 3 - 2
src/android/app/src/main/jni/native.cpp

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