diff options
Diffstat (limited to 'src/core/hle')
| -rw-r--r-- | src/core/hle/service/am/am.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp index 8d057b3a8..d82a3169d 100644 --- a/src/core/hle/service/am/am.cpp +++ b/src/core/hle/service/am/am.cpp | |||
| @@ -340,7 +340,7 @@ void ISelfController::Exit(HLERequestContext& ctx) { | |||
| 340 | void ISelfController::LockExit(HLERequestContext& ctx) { | 340 | void ISelfController::LockExit(HLERequestContext& ctx) { |
| 341 | LOG_DEBUG(Service_AM, "called"); | 341 | LOG_DEBUG(Service_AM, "called"); |
| 342 | 342 | ||
| 343 | system.SetExitLock(true); | 343 | system.SetExitLocked(true); |
| 344 | 344 | ||
| 345 | IPC::ResponseBuilder rb{ctx, 2}; | 345 | IPC::ResponseBuilder rb{ctx, 2}; |
| 346 | rb.Push(ResultSuccess); | 346 | rb.Push(ResultSuccess); |
| @@ -349,10 +349,14 @@ void ISelfController::LockExit(HLERequestContext& ctx) { | |||
| 349 | void ISelfController::UnlockExit(HLERequestContext& ctx) { | 349 | void ISelfController::UnlockExit(HLERequestContext& ctx) { |
| 350 | LOG_DEBUG(Service_AM, "called"); | 350 | LOG_DEBUG(Service_AM, "called"); |
| 351 | 351 | ||
| 352 | system.SetExitLock(false); | 352 | system.SetExitLocked(false); |
| 353 | 353 | ||
| 354 | IPC::ResponseBuilder rb{ctx, 2}; | 354 | IPC::ResponseBuilder rb{ctx, 2}; |
| 355 | rb.Push(ResultSuccess); | 355 | rb.Push(ResultSuccess); |
| 356 | |||
| 357 | if (system.GetExitRequested()) { | ||
| 358 | system.Exit(); | ||
| 359 | } | ||
| 356 | } | 360 | } |
| 357 | 361 | ||
| 358 | void ISelfController::EnterFatalSection(HLERequestContext& ctx) { | 362 | void ISelfController::EnterFatalSection(HLERequestContext& ctx) { |