瀏覽代碼

am: Implement ISelfController ExitLock commands

Zach Hilman 7 年之前
父節點
當前提交
e58e3719d8
共有 1 個文件被更改,包括 6 次插入2 次删除
  1. 6 2
      src/core/hle/service/am/am.cpp

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

@@ -308,14 +308,18 @@ void ISelfController::Exit(Kernel::HLERequestContext& ctx) {
 }
 
 void ISelfController::LockExit(Kernel::HLERequestContext& ctx) {
-    LOG_WARNING(Service_AM, "(STUBBED) called");
+    LOG_DEBUG(Service_AM, "called");
+
+    system.SetExitLock(true);
 
     IPC::ResponseBuilder rb{ctx, 2};
     rb.Push(RESULT_SUCCESS);
 }
 
 void ISelfController::UnlockExit(Kernel::HLERequestContext& ctx) {
-    LOG_WARNING(Service_AM, "(STUBBED) called");
+    LOG_DEBUG(Service_AM, "called");
+
+    system.SetExitLock(false);
 
     IPC::ResponseBuilder rb{ctx, 2};
     rb.Push(RESULT_SUCCESS);