mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-23 04:59:16 +01:00
Stub SetIdleTimeDetectionExtension, SetAlbumImageTakenNotificationEnabled
This commit is contained in:
parent
60843269de
commit
dcd9e4ff61
@ -70,6 +70,12 @@ namespace skyline::service::am {
|
||||
return {};
|
||||
}
|
||||
|
||||
Result ISelfController::SetIdleTimeDetectionExtension(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
|
||||
auto idleTimeDetectionExtension{request.Pop<u32>()};
|
||||
Logger::Debug("Setting Idle Time Detection Extension: 0x{:X}", idleTimeDetectionExtension);
|
||||
return {};
|
||||
}
|
||||
|
||||
Result ISelfController::GetAccumulatedSuspendedTickValue(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
|
||||
// TODO: Properly handle this after we implement game suspending
|
||||
response.Push<u64>(0);
|
||||
@ -83,4 +89,10 @@ namespace skyline::service::am {
|
||||
response.copyHandles.push_back(handle);
|
||||
return {};
|
||||
}
|
||||
|
||||
Result ISelfController::SetAlbumImageTakenNotificationEnabled(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
|
||||
auto albumImageTakenNotificationEnabled{request.Pop<u8>()};;
|
||||
Logger::Debug("Setting Album Image Taken Notification Enabled: {}", albumImageTakenNotificationEnabled);
|
||||
return {};
|
||||
}
|
||||
}
|
||||
|
@ -93,6 +93,11 @@ namespace skyline::service::am {
|
||||
*/
|
||||
Result CreateManagedDisplayLayer(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
|
||||
|
||||
/**
|
||||
* @url https://switchbrew.org/wiki/Applet_Manager_services#SetIdleTimeDetectionExtension
|
||||
*/
|
||||
Result SetIdleTimeDetectionExtension(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
|
||||
|
||||
/**
|
||||
* @brief Returns how long the process was suspended for in ticks
|
||||
* @url https://switchbrew.org/wiki/Applet_Manager_services#GetAccumulatedSuspendedTickValue
|
||||
@ -105,6 +110,11 @@ namespace skyline::service::am {
|
||||
*/
|
||||
Result GetAccumulatedSuspendedTickChangedEvent(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
|
||||
|
||||
/**
|
||||
* @url https://switchbrew.org/wiki/Applet_Manager_services#SetAlbumImageTakenNotificationEnabled
|
||||
*/
|
||||
Result SetAlbumImageTakenNotificationEnabled(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
|
||||
|
||||
SERVICE_DECL(
|
||||
SFUNC(0x0, ISelfController, Exit),
|
||||
SFUNC(0x1, ISelfController, LockExit),
|
||||
@ -118,8 +128,10 @@ namespace skyline::service::am {
|
||||
SFUNC(0x10, ISelfController, SetOutOfFocusSuspendingEnabled),
|
||||
SFUNC(0x13, ISelfController, SetAlbumImageOrientation),
|
||||
SFUNC(0x28, ISelfController, CreateManagedDisplayLayer),
|
||||
SFUNC(0x3E, ISelfController, SetIdleTimeDetectionExtension),
|
||||
SFUNC(0x5A, ISelfController, GetAccumulatedSuspendedTickValue),
|
||||
SFUNC(0x5B, ISelfController, GetAccumulatedSuspendedTickChangedEvent)
|
||||
SFUNC(0x5B, ISelfController, GetAccumulatedSuspendedTickChangedEvent),
|
||||
SFUNC(0x64, ISelfController, SetAlbumImageTakenNotificationEnabled)
|
||||
)
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user