diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2021-09-25 23:21:08 -0400 |
---|---|---|
committer | Morph <39850852+Morph1984@users.noreply.github.com> | 2021-10-01 23:39:55 -0400 |
commit | 2f5808b7ffd168e1ab3ac7e453f8936098350e58 (patch) | |
tree | 89860f4f5df991336bab7332a77e76bb58e1047f /src | |
parent | 282bdfd1bf87de150f4a2e7686a4f062b4b9f7c1 (diff) |
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.cpp | 4 |
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) { |