summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Morph2021-09-25 23:21:08 -0400
committerGravatar Morph2021-10-01 23:39:55 -0400
commit2f5808b7ffd168e1ab3ac7e453f8936098350e58 (patch)
tree89860f4f5df991336bab7332a77e76bb58e1047f /src
parentyuzu: main: Register a callback for Exit (diff)
downloadyuzu-2f5808b7ffd168e1ab3ac7e453f8936098350e58.tar.gz
yuzu-2f5808b7ffd168e1ab3ac7e453f8936098350e58.tar.xz
yuzu-2f5808b7ffd168e1ab3ac7e453f8936098350e58.zip
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.
Diffstat (limited to 'src')
-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) {