Stub some IApplicationFunctions funcs

This commit is contained in:
Dima 2022-11-20 12:36:25 +03:00 committed by Billy Laws
parent a6f3aa3062
commit 150c1370c2
2 changed files with 32 additions and 0 deletions

View File

@ -105,6 +105,10 @@ namespace skyline::service::am {
return {}; return {};
} }
Result IApplicationFunctions::EnableApplicationCrashReport(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
return {};
}
Result IApplicationFunctions::InitializeApplicationCopyrightFrameBuffer(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) { Result IApplicationFunctions::InitializeApplicationCopyrightFrameBuffer(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
i32 width{request.Pop<i32>()}; i32 width{request.Pop<i32>()};
i32 height{request.Pop<i32>()}; i32 height{request.Pop<i32>()};
@ -146,6 +150,16 @@ namespace skyline::service::am {
return {}; return {};
} }
Result IApplicationFunctions::QueryApplicationPlayStatistics(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
response.Push<u32>(0);
return {};
}
Result IApplicationFunctions::QueryApplicationPlayStatisticsByUid(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
response.Push<u32>(0);
return {};
}
Result IApplicationFunctions::GetPreviousProgramIndex(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) { Result IApplicationFunctions::GetPreviousProgramIndex(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
response.Push<i32>(previousProgramIndex); response.Push<i32>(previousProgramIndex);
return {}; return {};

View File

@ -79,6 +79,11 @@ namespace skyline::service::am {
*/ */
Result SetGamePlayRecordingState(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response); Result SetGamePlayRecordingState(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
/**
* @url https://switchbrew.org/wiki/Applet_Manager_services#EnableApplicationCrashReport
*/
Result EnableApplicationCrashReport(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
/** /**
* @brief Uses the given transfer memory to setup memory for the screenshot copyright image * @brief Uses the given transfer memory to setup memory for the screenshot copyright image
* @url https://switchbrew.org/wiki/Applet_Manager_services#InitializeApplicationCopyrightFrameBuffer * @url https://switchbrew.org/wiki/Applet_Manager_services#InitializeApplicationCopyrightFrameBuffer
@ -97,6 +102,16 @@ namespace skyline::service::am {
*/ */
Result SetApplicationCopyrightVisibility(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response); Result SetApplicationCopyrightVisibility(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
/**
* @url https://switchbrew.org/wiki/Applet_Manager_services#QueryApplicationPlayStatistics
*/
Result QueryApplicationPlayStatistics(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
/**
* @url https://switchbrew.org/wiki/Applet_Manager_services#QueryApplicationPlayStatisticsByUid
*/
Result QueryApplicationPlayStatisticsByUid(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
/** /**
* @brief Gets the ProgramIndex of the Application which launched this title * @brief Gets the ProgramIndex of the Application which launched this title
* @url https://switchbrew.org/wiki/Applet_Manager_services#GetPreviousProgramIndex * @url https://switchbrew.org/wiki/Applet_Manager_services#GetPreviousProgramIndex
@ -126,9 +141,12 @@ namespace skyline::service::am {
SFUNC(0x32, IApplicationFunctions, GetPseudoDeviceId), SFUNC(0x32, IApplicationFunctions, GetPseudoDeviceId),
SFUNC(0x42, IApplicationFunctions, InitializeGamePlayRecording), SFUNC(0x42, IApplicationFunctions, InitializeGamePlayRecording),
SFUNC(0x43, IApplicationFunctions, SetGamePlayRecordingState), SFUNC(0x43, IApplicationFunctions, SetGamePlayRecordingState),
SFUNC(0x5A, IApplicationFunctions, EnableApplicationCrashReport),
SFUNC(0x64, IApplicationFunctions, InitializeApplicationCopyrightFrameBuffer), SFUNC(0x64, IApplicationFunctions, InitializeApplicationCopyrightFrameBuffer),
SFUNC(0x65, IApplicationFunctions, SetApplicationCopyrightImage), SFUNC(0x65, IApplicationFunctions, SetApplicationCopyrightImage),
SFUNC(0x66, IApplicationFunctions, SetApplicationCopyrightVisibility), SFUNC(0x66, IApplicationFunctions, SetApplicationCopyrightVisibility),
SFUNC(0x6E, IApplicationFunctions, QueryApplicationPlayStatistics),
SFUNC(0x6F, IApplicationFunctions, QueryApplicationPlayStatisticsByUid),
SFUNC(0x7B, IApplicationFunctions, GetPreviousProgramIndex), SFUNC(0x7B, IApplicationFunctions, GetPreviousProgramIndex),
SFUNC(0x82, IApplicationFunctions, GetGpuErrorDetectedSystemEvent), SFUNC(0x82, IApplicationFunctions, GetGpuErrorDetectedSystemEvent),
SFUNC(0x8C, IApplicationFunctions, GetFriendInvitationStorageChannelEvent), SFUNC(0x8C, IApplicationFunctions, GetFriendInvitationStorageChannelEvent),