|
|
|
@ -15,8 +15,8 @@ IGlobalStateController::IGlobalStateController(Core::System& system_) |
|
|
|
{0, nullptr, "RequestToEnterSleep"}, |
|
|
|
{1, nullptr, "EnterSleep"}, |
|
|
|
{2, nullptr, "StartSleepSequence"}, |
|
|
|
{3, nullptr, "StartShutdownSequence"}, |
|
|
|
{4, nullptr, "StartRebootSequence"}, |
|
|
|
{3, D<&IGlobalStateController::StartShutdownSequence>, "StartShutdownSequence"}, |
|
|
|
{4, D<&IGlobalStateController::StartRebootSequence>, "StartRebootSequence"}, |
|
|
|
{9, nullptr, "IsAutoPowerDownRequested"}, |
|
|
|
{10, D<&IGlobalStateController::LoadAndApplyIdlePolicySettings>, "LoadAndApplyIdlePolicySettings"}, |
|
|
|
{11, nullptr, "NotifyCecSettingsChanged"}, |
|
|
|
@ -31,6 +31,18 @@ IGlobalStateController::IGlobalStateController(Core::System& system_) |
|
|
|
RegisterHandlers(functions); |
|
|
|
} |
|
|
|
|
|
|
|
Result IGlobalStateController::StartShutdownSequence() { |
|
|
|
LOG_INFO(Service_AM, "called"); |
|
|
|
system.Exit(); |
|
|
|
R_SUCCEED(); |
|
|
|
} |
|
|
|
|
|
|
|
Result IGlobalStateController::StartRebootSequence() { |
|
|
|
LOG_INFO(Service_AM, "called"); |
|
|
|
system.Exit(); |
|
|
|
R_SUCCEED(); |
|
|
|
} |
|
|
|
|
|
|
|
IGlobalStateController::~IGlobalStateController() = default; |
|
|
|
|
|
|
|
Result IGlobalStateController::LoadAndApplyIdlePolicySettings() { |
|
|
|
|