Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

Code cleanup (#136)

MaranBre9e17b8fc2d0
diff --git a/src/core/hle/service/am/applet.cpp b/src/core/hle/service/am/applet.cpp
index f94d528da7..ec7e6612ac 100644
--- a/src/core/hle/service/am/applet.cpp
+++ b/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);
diff --git a/src/core/hle/service/am/service/library_applet_accessor.cpp b/src/core/hle/service/am/service/library_applet_accessor.cpp
index 974e43812d..383f16c8db 100644
--- a/src/core/hle/service/am/service/library_applet_accessor.cpp
+++ b/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()));
}