Browse Source

Code cleanup (#136)

Remove the workaround for MK8D as we no longer need it.

Co-authored-by: MaranBr <maranbr@outlook.com>
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/136
pull/125/head
MaranBr 7 months ago
parent
commit
e9e17b8fc2
  1. 2
      src/core/hle/service/am/applet.cpp
  2. 10
      src/core/hle/service/am/service/library_applet_accessor.cpp

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

@ -30,7 +30,7 @@ void Applet::UpdateSuspensionStateLocked(bool force_message) {
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;
if (was_changed) {
if (curr_activity_runnable) {
process->Suspend(false);

10
src/core/hle/service/am/service/library_applet_accessor.cpp

@ -107,16 +107,6 @@ Result ILibraryAppletAccessor::PushInData(SharedPointer<IStorage> storage) {
Result ILibraryAppletAccessor::PopOutData(Out<SharedPointer<IStorage>> out_storage) {
LOG_DEBUG(Service_AM, "called");
if (auto caller = m_applet->caller_applet.lock(); caller != nullptr) {
caller->SetInteractibleLocked(true);
caller->lifecycle_manager.SetFocusState(FocusState::InFocus);
caller->lifecycle_manager.UpdateRequestedFocusState();
caller->lifecycle_manager.SetResumeNotificationEnabled(true);
caller->lifecycle_manager.RequestResumeNotification();
caller->UpdateSuspensionStateLocked(true);
} else {
LOG_CRITICAL(Service_AM, "Caller applet pointer is invalid.");
}
R_RETURN(m_broker->GetOutData().Pop(out_storage.Get()));
}

Loading…
Cancel
Save