From ca67acaeafec17c90cb35c3314f300f532c88d08 Mon Sep 17 00:00:00 2001 From: Maufeat Date: Sat, 7 Feb 2026 01:16:45 +0100 Subject: [PATCH] terminate app, if caller applet is available --- .../hle/service/am/service/library_applet_self_accessor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/hle/service/am/service/library_applet_self_accessor.cpp b/src/core/hle/service/am/service/library_applet_self_accessor.cpp index 0335ae5be6..4a1d1f97d3 100644 --- a/src/core/hle/service/am/service/library_applet_self_accessor.cpp +++ b/src/core/hle/service/am/service/library_applet_self_accessor.cpp @@ -181,12 +181,12 @@ Result ILibraryAppletSelfAccessor::ExitProcessAndReturn() { LOG_INFO(Service_AM, "called"); if (const auto caller_applet = m_applet->caller_applet.lock(); caller_applet) { - system.GetUserChannel() = caller_applet->user_channel_launch_parameter; + m_applet->process->Terminate(); } else { system.GetUserChannel() = m_applet->user_channel_launch_parameter; + system.ExecuteProgram(0); } - system.ExecuteProgram(0); R_SUCCEED(); }