|
|
|
@ -18,6 +18,7 @@
|
|
|
|
|
#include "core/hle/service/apm/apm.h"
|
|
|
|
|
#include "core/hle/service/filesystem/filesystem.h"
|
|
|
|
|
#include "core/hle/service/nvflinger/nvflinger.h"
|
|
|
|
|
#include "core/hle/service/pm/pm.h"
|
|
|
|
|
#include "core/hle/service/set/set.h"
|
|
|
|
|
#include "core/settings.h"
|
|
|
|
|
|
|
|
|
@ -309,7 +310,7 @@ ICommonStateGetter::ICommonStateGetter() : ServiceFramework("ICommonStateGetter"
|
|
|
|
|
{5, &ICommonStateGetter::GetOperationMode, "GetOperationMode"},
|
|
|
|
|
{6, &ICommonStateGetter::GetPerformanceMode, "GetPerformanceMode"},
|
|
|
|
|
{7, nullptr, "GetCradleStatus"},
|
|
|
|
|
{8, nullptr, "GetBootMode"},
|
|
|
|
|
{8, &ICommonStateGetter::GetBootMode, "GetBootMode"},
|
|
|
|
|
{9, &ICommonStateGetter::GetCurrentFocusState, "GetCurrentFocusState"},
|
|
|
|
|
{10, nullptr, "RequestToAcquireSleepLock"},
|
|
|
|
|
{11, nullptr, "ReleaseSleepLock"},
|
|
|
|
@ -334,6 +335,15 @@ ICommonStateGetter::ICommonStateGetter() : ServiceFramework("ICommonStateGetter"
|
|
|
|
|
event = Kernel::Event::Create(Kernel::ResetType::OneShot, "ICommonStateGetter:Event");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void ICommonStateGetter::GetBootMode(Kernel::HLERequestContext& ctx) {
|
|
|
|
|
IPC::ResponseBuilder rb{ctx, 3};
|
|
|
|
|
rb.Push(RESULT_SUCCESS);
|
|
|
|
|
|
|
|
|
|
rb.Push<u8>(static_cast<u8>(Service::PM::SystemBootMode::Normal)); // Normal boot mode
|
|
|
|
|
|
|
|
|
|
LOG_DEBUG(Service_AM, "called");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void ICommonStateGetter::GetEventHandle(Kernel::HLERequestContext& ctx) {
|
|
|
|
|
event->Signal();
|
|
|
|
|
|
|
|
|
|