From fe37d7c9bed37979f53b6e4f6d564f9b3715474b Mon Sep 17 00:00:00 2001 From: Billy Laws Date: Sat, 9 Apr 2022 12:29:39 +0100 Subject: [PATCH] Implement ICommonStateGetter::SetRequestExitToLibraryAppletAtExecuteNextProgramEnabled --- .../skyline/services/am/controller/ICommonStateGetter.cpp | 4 ++++ .../skyline/services/am/controller/ICommonStateGetter.h | 8 +++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/app/src/main/cpp/skyline/services/am/controller/ICommonStateGetter.cpp b/app/src/main/cpp/skyline/services/am/controller/ICommonStateGetter.cpp index aa74a244..d4995887 100644 --- a/app/src/main/cpp/skyline/services/am/controller/ICommonStateGetter.cpp +++ b/app/src/main/cpp/skyline/services/am/controller/ICommonStateGetter.cpp @@ -98,4 +98,8 @@ namespace skyline::service::am { } return {}; } + + Result ICommonStateGetter::SetRequestExitToLibraryAppletAtExecuteNextProgramEnabled(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) { + return {}; + } } diff --git a/app/src/main/cpp/skyline/services/am/controller/ICommonStateGetter.h b/app/src/main/cpp/skyline/services/am/controller/ICommonStateGetter.h index 6f5912a5..826f56e6 100644 --- a/app/src/main/cpp/skyline/services/am/controller/ICommonStateGetter.h +++ b/app/src/main/cpp/skyline/services/am/controller/ICommonStateGetter.h @@ -123,6 +123,11 @@ namespace skyline::service::am { */ Result SetCpuBoostMode(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response); + /** + * @url https://switchbrew.org/wiki/Applet_Manager_services#SetRequestExitToLibraryAppletAtExecuteNextProgramEnabled + */ + Result SetRequestExitToLibraryAppletAtExecuteNextProgramEnabled(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response); + SERVICE_DECL( SFUNC(0x0, ICommonStateGetter, GetEventHandle), SFUNC(0x1, ICommonStateGetter, ReceiveMessage), @@ -132,7 +137,8 @@ namespace skyline::service::am { SFUNC(0x32, ICommonStateGetter, IsVrModeEnabled), SFUNC(0x3C, ICommonStateGetter, GetDefaultDisplayResolution), SFUNC(0x3D, ICommonStateGetter, GetDefaultDisplayResolutionChangeEvent), - SFUNC(0x42, ICommonStateGetter, SetCpuBoostMode) + SFUNC(0x42, ICommonStateGetter, SetCpuBoostMode), + SFUNC(0x384, ICommonStateGetter, SetRequestExitToLibraryAppletAtExecuteNextProgramEnabled) ) }; }