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 5c66bf85..150ccdee 100644 --- a/app/src/main/cpp/skyline/services/am/controller/IApplicationFunctions.cpp +++ b/app/src/main/cpp/skyline/services/am/controller/IApplicationFunctions.cpp @@ -105,6 +105,10 @@ namespace skyline::service::am { 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) { i32 width{request.Pop()}; i32 height{request.Pop()}; @@ -146,6 +150,16 @@ namespace skyline::service::am { return {}; } + Result IApplicationFunctions::QueryApplicationPlayStatistics(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) { + response.Push(0); + return {}; + } + + Result IApplicationFunctions::QueryApplicationPlayStatisticsByUid(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) { + response.Push(0); + return {}; + } + Result IApplicationFunctions::GetPreviousProgramIndex(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) { response.Push(previousProgramIndex); return {}; 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 55cc068e..37456bdf 100644 --- a/app/src/main/cpp/skyline/services/am/controller/IApplicationFunctions.h +++ b/app/src/main/cpp/skyline/services/am/controller/IApplicationFunctions.h @@ -79,6 +79,11 @@ namespace skyline::service::am { */ 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 * @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); + /** + * @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 * @url https://switchbrew.org/wiki/Applet_Manager_services#GetPreviousProgramIndex @@ -126,9 +141,12 @@ namespace skyline::service::am { SFUNC(0x32, IApplicationFunctions, GetPseudoDeviceId), SFUNC(0x42, IApplicationFunctions, InitializeGamePlayRecording), SFUNC(0x43, IApplicationFunctions, SetGamePlayRecordingState), + SFUNC(0x5A, IApplicationFunctions, EnableApplicationCrashReport), SFUNC(0x64, IApplicationFunctions, InitializeApplicationCopyrightFrameBuffer), SFUNC(0x65, IApplicationFunctions, SetApplicationCopyrightImage), SFUNC(0x66, IApplicationFunctions, SetApplicationCopyrightVisibility), + SFUNC(0x6E, IApplicationFunctions, QueryApplicationPlayStatistics), + SFUNC(0x6F, IApplicationFunctions, QueryApplicationPlayStatisticsByUid), SFUNC(0x7B, IApplicationFunctions, GetPreviousProgramIndex), SFUNC(0x82, IApplicationFunctions, GetGpuErrorDetectedSystemEvent), SFUNC(0x8C, IApplicationFunctions, GetFriendInvitationStorageChannelEvent),