summaryrefslogtreecommitdiff
path: root/src/core/hle
diff options
context:
space:
mode:
authorGravatar bunnei2021-10-02 01:06:48 -0700
committerGravatar GitHub2021-10-02 01:06:48 -0700
commitae3e51c795ea72dd1eaea64d44b94afab7d74007 (patch)
tree89860f4f5df991336bab7332a77e76bb58e1047f /src/core/hle
parentMerge pull request #7102 from Morph1984/remove-boxcat (diff)
parentservice: am: Make use of Exit to exit the currently running application (diff)
downloadyuzu-ae3e51c795ea72dd1eaea64d44b94afab7d74007.tar.gz
yuzu-ae3e51c795ea72dd1eaea64d44b94afab7d74007.tar.xz
yuzu-ae3e51c795ea72dd1eaea64d44b94afab7d74007.zip
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;
332void ISelfController::Exit(Kernel::HLERequestContext& ctx) { 332void ISelfController::Exit(Kernel::HLERequestContext& ctx) {
333 LOG_DEBUG(Service_AM, "called"); 333 LOG_DEBUG(Service_AM, "called");
334 334
335 system.Shutdown();
336
337 IPC::ResponseBuilder rb{ctx, 2}; 335 IPC::ResponseBuilder rb{ctx, 2};
338 rb.Push(ResultSuccess); 336 rb.Push(ResultSuccess);
337
338 system.Exit();
339} 339}
340 340
341void ISelfController::LockExit(Kernel::HLERequestContext& ctx) { 341void ISelfController::LockExit(Kernel::HLERequestContext& ctx) {