Browse Source

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.
nce_cpp
Morph 4 years ago
parent
commit
13f4f14223
  1. 4
      src/core/hle/service/am/am.cpp

4
src/core/hle/service/am/am.cpp

@ -332,10 +332,10 @@ ISelfController::~ISelfController() = default;
void ISelfController::Exit(Kernel::HLERequestContext& ctx) { void ISelfController::Exit(Kernel::HLERequestContext& ctx) {
LOG_DEBUG(Service_AM, "called"); LOG_DEBUG(Service_AM, "called");
system.Shutdown();
IPC::ResponseBuilder rb{ctx, 2}; IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess); rb.Push(ResultSuccess);
system.Exit();
} }
void ISelfController::LockExit(Kernel::HLERequestContext& ctx) { void ISelfController::LockExit(Kernel::HLERequestContext& ctx) {

Loading…
Cancel
Save