From 05966f34e5238d9b5862a22c6801c21cac86df98 Mon Sep 17 00:00:00 2001 From: Billy Laws Date: Sat, 9 Apr 2022 12:48:36 +0100 Subject: [PATCH] Stub a pair of ISelfController functions Both used by SMO, SetScreenShotPermission and SetAlbumImageOrientation --- .../services/am/controller/ISelfController.cpp | 8 ++++++++ .../skyline/services/am/controller/ISelfController.h | 12 ++++++++++++ 2 files changed, 20 insertions(+) diff --git a/app/src/main/cpp/skyline/services/am/controller/ISelfController.cpp b/app/src/main/cpp/skyline/services/am/controller/ISelfController.cpp index c403b003..92196a61 100644 --- a/app/src/main/cpp/skyline/services/am/controller/ISelfController.cpp +++ b/app/src/main/cpp/skyline/services/am/controller/ISelfController.cpp @@ -35,6 +35,10 @@ namespace skyline::service::am { return {}; } + Result ISelfController::SetScreenShotPermission(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) { + return {}; + } + Result ISelfController::SetOperationModeChangedNotification(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) { return {}; } @@ -55,6 +59,10 @@ namespace skyline::service::am { return {}; } + Result ISelfController::SetAlbumImageOrientation(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) { + return {}; + } + Result ISelfController::CreateManagedDisplayLayer(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) { auto layerId{hosbinder->CreateLayer(hosbinder::DisplayId::Default)}; Logger::Debug("Creating Managed Layer #{} on 'Default' Display", layerId); diff --git a/app/src/main/cpp/skyline/services/am/controller/ISelfController.h b/app/src/main/cpp/skyline/services/am/controller/ISelfController.h index ba972403..2e6c3436 100644 --- a/app/src/main/cpp/skyline/services/am/controller/ISelfController.h +++ b/app/src/main/cpp/skyline/services/am/controller/ISelfController.h @@ -47,6 +47,11 @@ namespace skyline::service::am { */ Result GetLibraryAppletLaunchableEvent(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response); + /** + * @url https://switchbrew.org/wiki/Applet_Manager_services#SetScreenShotPermission + */ + Result SetScreenShotPermission(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response); + /** * @brief This function takes a u8 bool flag and no output (Stubbed) * @url https://switchbrew.org/wiki/Applet_Manager_services#SetOperationModeChangedNotification @@ -77,6 +82,11 @@ namespace skyline::service::am { */ Result SetOutOfFocusSuspendingEnabled(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response); + /** + * @url https://switchbrew.org/wiki/Applet_Manager_services#SetAlbumImageOrientation + */ + Result SetAlbumImageOrientation(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response); + /** * @brief Returns an output u64 LayerId * @url https://switchbrew.org/wiki/Applet_Manager_services#CreateManagedDisplayLayer @@ -100,11 +110,13 @@ namespace skyline::service::am { SFUNC(0x1, ISelfController, LockExit), SFUNC(0x2, ISelfController, UnlockExit), SFUNC(0x9, ISelfController, GetLibraryAppletLaunchableEvent), + SFUNC(0xA, ISelfController, SetScreenShotPermission), SFUNC(0xB, ISelfController, SetOperationModeChangedNotification), SFUNC(0xC, ISelfController, SetPerformanceModeChangedNotification), SFUNC(0xD, ISelfController, SetFocusHandlingMode), SFUNC(0xE, ISelfController, SetRestartMessageEnabled), SFUNC(0x10, ISelfController, SetOutOfFocusSuspendingEnabled), + SFUNC(0x13, ISelfController, SetAlbumImageOrientation), SFUNC(0x28, ISelfController, CreateManagedDisplayLayer), SFUNC(0x5A, ISelfController, GetAccumulatedSuspendedTickValue), SFUNC(0x5B, ISelfController, GetAccumulatedSuspendedTickChangedEvent)