diff options
| author | 2023-08-26 17:12:05 -0400 | |
|---|---|---|
| committer | 2023-08-26 17:12:05 -0400 | |
| commit | b7523d6fa77a963409d5fbfec4879c22a6ef9f3f (patch) | |
| tree | d9b7acc75eae4c216aeb39a3be6f3418fe3c894d /src/core/hle | |
| parent | Merge pull request #11377 from BenjaminHalko/reverse-slider-input (diff) | |
| download | yuzu-b7523d6fa77a963409d5fbfec4879c22a6ef9f3f.tar.gz yuzu-b7523d6fa77a963409d5fbfec4879c22a6ef9f3f.tar.xz yuzu-b7523d6fa77a963409d5fbfec4879c22a6ef9f3f.zip | |
am: shorten shutdown timeout when lock is not held
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) { |