소스 검색

service: am: Make use of Exit to exit the currently running application

This also moves the call to the end to ensure services are properly destructed on exit.
Morph 4 년 전
부모
커밋
2f5808b7ff
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/core/hle/service/am/am.cpp

+ 2 - 2
src/core/hle/service/am/am.cpp

@@ -332,10 +332,10 @@ ISelfController::~ISelfController() = default;
 void ISelfController::Exit(Kernel::HLERequestContext& ctx) {
     LOG_DEBUG(Service_AM, "called");
 
-    system.Shutdown();
-
     IPC::ResponseBuilder rb{ctx, 2};
     rb.Push(ResultSuccess);
+
+    system.Exit();
 }
 
 void ISelfController::LockExit(Kernel::HLERequestContext& ctx) {