|
|
@ -14,7 +14,7 @@ IGlobalStateController::IGlobalStateController(Core::System& system_)
|
|
|
|
static const FunctionInfo functions[] = {
|
|
|
|
static const FunctionInfo functions[] = {
|
|
|
|
{0, nullptr, "RequestToEnterSleep"},
|
|
|
|
{0, nullptr, "RequestToEnterSleep"},
|
|
|
|
{1, nullptr, "EnterSleep"},
|
|
|
|
{1, nullptr, "EnterSleep"},
|
|
|
|
{2, nullptr, "StartSleepSequence"},
|
|
|
|
{2, D<&IGlobalStateController::StartSleepSequence>, "StartSleepSequence"},
|
|
|
|
{3, D<&IGlobalStateController::StartShutdownSequence>, "StartShutdownSequence"},
|
|
|
|
{3, D<&IGlobalStateController::StartShutdownSequence>, "StartShutdownSequence"},
|
|
|
|
{4, D<&IGlobalStateController::StartRebootSequence>, "StartRebootSequence"},
|
|
|
|
{4, D<&IGlobalStateController::StartRebootSequence>, "StartRebootSequence"},
|
|
|
|
{9, nullptr, "IsAutoPowerDownRequested"},
|
|
|
|
{9, nullptr, "IsAutoPowerDownRequested"},
|
|
|
@ -31,6 +31,14 @@ IGlobalStateController::IGlobalStateController(Core::System& system_)
|
|
|
|
RegisterHandlers(functions);
|
|
|
|
RegisterHandlers(functions);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
IGlobalStateController::~IGlobalStateController() = default;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Result IGlobalStateController::StartSleepSequence(u8 a) {
|
|
|
|
|
|
|
|
LOG_WARNING(Service_AM, "called, a={}", a);
|
|
|
|
|
|
|
|
system.Pause();
|
|
|
|
|
|
|
|
R_SUCCEED();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Result IGlobalStateController::StartShutdownSequence() {
|
|
|
|
Result IGlobalStateController::StartShutdownSequence() {
|
|
|
|
LOG_INFO(Service_AM, "called");
|
|
|
|
LOG_INFO(Service_AM, "called");
|
|
|
|
system.Exit();
|
|
|
|
system.Exit();
|
|
|
@ -43,8 +51,6 @@ Result IGlobalStateController::StartRebootSequence() {
|
|
|
|
R_SUCCEED();
|
|
|
|
R_SUCCEED();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
IGlobalStateController::~IGlobalStateController() = default;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Result IGlobalStateController::LoadAndApplyIdlePolicySettings() {
|
|
|
|
Result IGlobalStateController::LoadAndApplyIdlePolicySettings() {
|
|
|
|
LOG_WARNING(Service_AM, "(STUBBED) called");
|
|
|
|
LOG_WARNING(Service_AM, "(STUBBED) called");
|
|
|
|
R_SUCCEED();
|
|
|
|
R_SUCCEED();
|
|
|
|