mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-29 23:06:23 -05:00
service/am: Implement IsAutoSleepDisabled
This simply queries whether or not auto-sleep facilities are disabled and has no special handling. It's a basic getter function.
This commit is contained in:
parent
b81f6f67f5
commit
f4ae449f73
2 changed files with 10 additions and 1 deletions
|
@ -267,7 +267,7 @@ ISelfController::ISelfController(std::shared_ptr<NVFlinger::NVFlinger> nvflinger
|
||||||
{66, nullptr, "GetCurrentIlluminance"},
|
{66, nullptr, "GetCurrentIlluminance"},
|
||||||
{67, nullptr, "IsIlluminanceAvailable"},
|
{67, nullptr, "IsIlluminanceAvailable"},
|
||||||
{68, &ISelfController::SetAutoSleepDisabled, "SetAutoSleepDisabled"},
|
{68, &ISelfController::SetAutoSleepDisabled, "SetAutoSleepDisabled"},
|
||||||
{69, nullptr, "IsAutoSleepDisabled"},
|
{69, &ISelfController::IsAutoSleepDisabled, "IsAutoSleepDisabled"},
|
||||||
{70, nullptr, "ReportMultimediaError"},
|
{70, nullptr, "ReportMultimediaError"},
|
||||||
{71, nullptr, "GetCurrentIlluminanceEx"},
|
{71, nullptr, "GetCurrentIlluminanceEx"},
|
||||||
{80, nullptr, "SetWirelessPriorityMode"},
|
{80, nullptr, "SetWirelessPriorityMode"},
|
||||||
|
@ -474,6 +474,14 @@ void ISelfController::SetAutoSleepDisabled(Kernel::HLERequestContext& ctx) {
|
||||||
rb.Push(RESULT_SUCCESS);
|
rb.Push(RESULT_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ISelfController::IsAutoSleepDisabled(Kernel::HLERequestContext& ctx) {
|
||||||
|
LOG_DEBUG(Service_AM, "called.");
|
||||||
|
|
||||||
|
IPC::ResponseBuilder rb{ctx, 3};
|
||||||
|
rb.Push(RESULT_SUCCESS);
|
||||||
|
rb.Push(is_auto_sleep_disabled);
|
||||||
|
}
|
||||||
|
|
||||||
void ISelfController::GetAccumulatedSuspendedTickValue(Kernel::HLERequestContext& ctx) {
|
void ISelfController::GetAccumulatedSuspendedTickValue(Kernel::HLERequestContext& ctx) {
|
||||||
LOG_DEBUG(Service_AM, "called.");
|
LOG_DEBUG(Service_AM, "called.");
|
||||||
|
|
||||||
|
|
|
@ -134,6 +134,7 @@ private:
|
||||||
void SetIdleTimeDetectionExtension(Kernel::HLERequestContext& ctx);
|
void SetIdleTimeDetectionExtension(Kernel::HLERequestContext& ctx);
|
||||||
void GetIdleTimeDetectionExtension(Kernel::HLERequestContext& ctx);
|
void GetIdleTimeDetectionExtension(Kernel::HLERequestContext& ctx);
|
||||||
void SetAutoSleepDisabled(Kernel::HLERequestContext& ctx);
|
void SetAutoSleepDisabled(Kernel::HLERequestContext& ctx);
|
||||||
|
void IsAutoSleepDisabled(Kernel::HLERequestContext& ctx);
|
||||||
void GetAccumulatedSuspendedTickValue(Kernel::HLERequestContext& ctx);
|
void GetAccumulatedSuspendedTickValue(Kernel::HLERequestContext& ctx);
|
||||||
void GetAccumulatedSuspendedTickChangedEvent(Kernel::HLERequestContext& ctx);
|
void GetAccumulatedSuspendedTickChangedEvent(Kernel::HLERequestContext& ctx);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue