Browse Source

Revert "mk8d-fix (#129)"

This reverts commit 71df7b1451.

Signed-off-by: crueter <crueter@eden-emu.dev>
pull/3232/head
crueter 1 month ago
parent
commit
9355864e26
No known key found for this signature in database GPG Key ID: 425ACD2D4830EBC6
  1. 5
      src/core/hle/service/am/applet.cpp

5
src/core/hle/service/am/applet.cpp

@ -29,7 +29,6 @@ void Applet::UpdateSuspensionStateLocked(bool force_message) {
// Remove any forced resumption.
lifecycle_manager.RemoveForceResumeIfPossible();
const bool update_requested_focus_state = lifecycle_manager.UpdateRequestedFocusState();
const bool curr_activity_runnable = lifecycle_manager.IsRunnable();
const bool prev_activity_runnable = is_activity_runnable;
const bool was_changed = curr_activity_runnable != prev_activity_runnable;
@ -39,7 +38,7 @@ void Applet::UpdateSuspensionStateLocked(bool force_message) {
process->Suspend(false);
} else {
process->Suspend(true);
lifecycle_manager.RequestResumeNotification();
lifecycle_manager.RequestResumeNotification();
}
is_activity_runnable = curr_activity_runnable;
@ -51,7 +50,7 @@ void Applet::UpdateSuspensionStateLocked(bool force_message) {
}
// Signal if the focus state was changed or the process state was changed.
if (update_requested_focus_state || was_changed || force_message) {
if (lifecycle_manager.UpdateRequestedFocusState() || was_changed || force_message) {
lifecycle_manager.SignalSystemEventIfNeeded();
}
}

Loading…
Cancel
Save