diff --git a/app/src/main/cpp/skyline/services/am/controller/IApplicationFunctions.cpp b/app/src/main/cpp/skyline/services/am/controller/IApplicationFunctions.cpp index 87041707..e3c20884 100644 --- a/app/src/main/cpp/skyline/services/am/controller/IApplicationFunctions.cpp +++ b/app/src/main/cpp/skyline/services/am/controller/IApplicationFunctions.cpp @@ -57,6 +57,12 @@ namespace skyline::service::am { return {}; } + Result IApplicationFunctions::SetTerminateResult(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) { + auto result{request.Pop()}; + Logger::Info("App set termination result: {}", result.raw); + return {}; + } + Result IApplicationFunctions::GetDesiredLanguage(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) { auto desiredLanguage{language::GetApplicationLanguage(*state.settings->systemLanguage)}; diff --git a/app/src/main/cpp/skyline/services/am/controller/IApplicationFunctions.h b/app/src/main/cpp/skyline/services/am/controller/IApplicationFunctions.h index 7939ea84..6cbf87c7 100644 --- a/app/src/main/cpp/skyline/services/am/controller/IApplicationFunctions.h +++ b/app/src/main/cpp/skyline/services/am/controller/IApplicationFunctions.h @@ -37,6 +37,12 @@ namespace skyline::service::am { */ Result EnsureSaveData(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response); + /** + * @brief Sets a termination result for the application + * @url https://switchbrew.org/wiki/Applet_Manager_services#SetTerminateResult + */ + Result SetTerminateResult(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response); + /** * @brief Returns the desired language for the application * @url https://switchbrew.org/wiki/Applet_Manager_services#GetDesiredLanguage @@ -105,6 +111,7 @@ namespace skyline::service::am { SFUNC(0x1, IApplicationFunctions, PopLaunchParameter), SFUNC(0x14, IApplicationFunctions, EnsureSaveData), SFUNC(0x15, IApplicationFunctions, GetDesiredLanguage), + SFUNC(0x16, IApplicationFunctions, SetTerminateResult), SFUNC(0x17, IApplicationFunctions, GetDisplayVersion), SFUNC(0x28, IApplicationFunctions, NotifyRunning), SFUNC(0x32, IApplicationFunctions, GetPseudoDeviceId),