Stub am::SetTerminateResult

This commit is contained in:
lynxnb 2022-10-07 19:20:51 +02:00 committed by Billy Laws
parent bc016aff47
commit 45830633eb
2 changed files with 13 additions and 0 deletions

View File

@ -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<Result>()};
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)};

View File

@ -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),