diff options
| author | 2021-09-25 23:21:08 -0400 | |
|---|---|---|
| committer | 2021-10-01 23:39:55 -0400 | |
| commit | 2f5808b7ffd168e1ab3ac7e453f8936098350e58 (patch) | |
| tree | 89860f4f5df991336bab7332a77e76bb58e1047f /src | |
| parent | yuzu: main: Register a callback for Exit (diff) | |
| download | yuzu-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.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; | |||
| 332 | void ISelfController::Exit(Kernel::HLERequestContext& ctx) { | 332 | void 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 | ||
| 341 | void ISelfController::LockExit(Kernel::HLERequestContext& ctx) { | 341 | void ISelfController::LockExit(Kernel::HLERequestContext& ctx) { |