summaryrefslogtreecommitdiff
path: root/src/core/hle
diff options
context:
space:
mode:
authorGravatar liamwhite2023-09-02 14:42:35 -0400
committerGravatar GitHub2023-09-02 14:42:35 -0400
commit2c5e8e6d408f0e060da4665444132c4b8bbf7759 (patch)
tree2957a8ccab9c4d2fc6ffd57fc81afce158bcceab /src/core/hle
parentMerge pull request #11393 from FernandoS27/bayo-got-busted-up (diff)
parentam: shorten shutdown timeout when lock is not held (diff)
downloadyuzu-2c5e8e6d408f0e060da4665444132c4b8bbf7759.tar.gz
yuzu-2c5e8e6d408f0e060da4665444132c4b8bbf7759.tar.xz
yuzu-2c5e8e6d408f0e060da4665444132c4b8bbf7759.zip
Merge pull request #11384 from liamwhite/am-shutdown
am: shorten shutdown timeout when lock is not held
Diffstat (limited to 'src/core/hle')
-rw-r--r--src/core/hle/service/am/am.cpp8
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 da33f0e44..e92f400de 100644
--- a/src/core/hle/service/am/am.cpp
+++ b/src/core/hle/service/am/am.cpp
@@ -341,7 +341,7 @@ void ISelfController::Exit(HLERequestContext& ctx) {
341void ISelfController::LockExit(HLERequestContext& ctx) { 341void ISelfController::LockExit(HLERequestContext& ctx) {
342 LOG_DEBUG(Service_AM, "called"); 342 LOG_DEBUG(Service_AM, "called");
343 343
344 system.SetExitLock(true); 344 system.SetExitLocked(true);
345 345
346 IPC::ResponseBuilder rb{ctx, 2}; 346 IPC::ResponseBuilder rb{ctx, 2};
347 rb.Push(ResultSuccess); 347 rb.Push(ResultSuccess);
@@ -350,10 +350,14 @@ void ISelfController::LockExit(HLERequestContext& ctx) {
350void ISelfController::UnlockExit(HLERequestContext& ctx) { 350void ISelfController::UnlockExit(HLERequestContext& ctx) {
351 LOG_DEBUG(Service_AM, "called"); 351 LOG_DEBUG(Service_AM, "called");
352 352
353 system.SetExitLock(false); 353 system.SetExitLocked(false);
354 354
355 IPC::ResponseBuilder rb{ctx, 2}; 355 IPC::ResponseBuilder rb{ctx, 2};
356 rb.Push(ResultSuccess); 356 rb.Push(ResultSuccess);
357
358 if (system.GetExitRequested()) {
359 system.Exit();
360 }
357} 361}
358 362
359void ISelfController::EnterFatalSection(HLERequestContext& ctx) { 363void ISelfController::EnterFatalSection(HLERequestContext& ctx) {