Stub a pair of ISelfController functions

Both used by SMO, SetScreenShotPermission and SetAlbumImageOrientation
This commit is contained in:
Billy Laws 2022-04-09 12:48:36 +01:00 committed by PixelyIon
parent fe37d7c9be
commit 05966f34e5
2 changed files with 20 additions and 0 deletions

View File

@ -35,6 +35,10 @@ namespace skyline::service::am {
return {}; 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) { Result ISelfController::SetOperationModeChangedNotification(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
return {}; return {};
} }
@ -55,6 +59,10 @@ namespace skyline::service::am {
return {}; 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) { Result ISelfController::CreateManagedDisplayLayer(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
auto layerId{hosbinder->CreateLayer(hosbinder::DisplayId::Default)}; auto layerId{hosbinder->CreateLayer(hosbinder::DisplayId::Default)};
Logger::Debug("Creating Managed Layer #{} on 'Default' Display", layerId); Logger::Debug("Creating Managed Layer #{} on 'Default' Display", layerId);

View File

@ -47,6 +47,11 @@ namespace skyline::service::am {
*/ */
Result GetLibraryAppletLaunchableEvent(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response); 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) * @brief This function takes a u8 bool flag and no output (Stubbed)
* @url https://switchbrew.org/wiki/Applet_Manager_services#SetOperationModeChangedNotification * @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); 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 * @brief Returns an output u64 LayerId
* @url https://switchbrew.org/wiki/Applet_Manager_services#CreateManagedDisplayLayer * @url https://switchbrew.org/wiki/Applet_Manager_services#CreateManagedDisplayLayer
@ -100,11 +110,13 @@ namespace skyline::service::am {
SFUNC(0x1, ISelfController, LockExit), SFUNC(0x1, ISelfController, LockExit),
SFUNC(0x2, ISelfController, UnlockExit), SFUNC(0x2, ISelfController, UnlockExit),
SFUNC(0x9, ISelfController, GetLibraryAppletLaunchableEvent), SFUNC(0x9, ISelfController, GetLibraryAppletLaunchableEvent),
SFUNC(0xA, ISelfController, SetScreenShotPermission),
SFUNC(0xB, ISelfController, SetOperationModeChangedNotification), SFUNC(0xB, ISelfController, SetOperationModeChangedNotification),
SFUNC(0xC, ISelfController, SetPerformanceModeChangedNotification), SFUNC(0xC, ISelfController, SetPerformanceModeChangedNotification),
SFUNC(0xD, ISelfController, SetFocusHandlingMode), SFUNC(0xD, ISelfController, SetFocusHandlingMode),
SFUNC(0xE, ISelfController, SetRestartMessageEnabled), SFUNC(0xE, ISelfController, SetRestartMessageEnabled),
SFUNC(0x10, ISelfController, SetOutOfFocusSuspendingEnabled), SFUNC(0x10, ISelfController, SetOutOfFocusSuspendingEnabled),
SFUNC(0x13, ISelfController, SetAlbumImageOrientation),
SFUNC(0x28, ISelfController, CreateManagedDisplayLayer), SFUNC(0x28, ISelfController, CreateManagedDisplayLayer),
SFUNC(0x5A, ISelfController, GetAccumulatedSuspendedTickValue), SFUNC(0x5A, ISelfController, GetAccumulatedSuspendedTickValue),
SFUNC(0x5B, ISelfController, GetAccumulatedSuspendedTickChangedEvent) SFUNC(0x5B, ISelfController, GetAccumulatedSuspendedTickChangedEvent)