summaryrefslogtreecommitdiff
path: root/src/core/hle
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-10-02 01:06:48 -0700
committerGitHub <noreply@github.com>2021-10-02 01:06:48 -0700
commitae3e51c795ea72dd1eaea64d44b94afab7d74007 (patch)
tree89860f4f5df991336bab7332a77e76bb58e1047f /src/core/hle
parent3a33519598063175fb7c16c67e32784ed97d5017 (diff)
parent2f5808b7ffd168e1ab3ac7e453f8936098350e58 (diff)
Merge pull request #7093 from Morph1984/exit
core: Properly shutdown and exit the running application when ISelfController::Exit is called
Diffstat (limited to 'src/core/hle')
-rw-r--r--src/core/hle/service/am/am.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp
index 8c2e2f920..49e9787a4 100644
--- a/src/core/hle/service/am/am.cpp
+++ b/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) {