diff options
author | David <25727384+ogniK5377@users.noreply.github.com> | 2018-08-24 00:31:45 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-08-24 00:31:45 +0200 |
commit | 5049ca5d8c667ed973ad3ed83d82369243b2a16b (patch) | |
tree | fc8f62d63f32f44954594ae169778ebea59bf113 /src/core/hle/service/am | |
parent | Merge pull request #1160 from bunnei/surface-reserve (diff) | |
download | yuzu-5049ca5d8c667ed973ad3ed83d82369243b2a16b.tar yuzu-5049ca5d8c667ed973ad3ed83d82369243b2a16b.tar.gz yuzu-5049ca5d8c667ed973ad3ed83d82369243b2a16b.tar.bz2 yuzu-5049ca5d8c667ed973ad3ed83d82369243b2a16b.tar.lz yuzu-5049ca5d8c667ed973ad3ed83d82369243b2a16b.tar.xz yuzu-5049ca5d8c667ed973ad3ed83d82369243b2a16b.tar.zst yuzu-5049ca5d8c667ed973ad3ed83d82369243b2a16b.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/am/am.cpp | 12 | ||||
-rw-r--r-- | src/core/hle/service/am/am.h | 1 |
2 files changed, 12 insertions, 1 deletions
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp index 78d551a8a..7e3cf6d58 100644 --- a/src/core/hle/service/am/am.cpp +++ b/src/core/hle/service/am/am.cpp @@ -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(); diff --git a/src/core/hle/service/am/am.h b/src/core/hle/service/am/am.h index b763aff6f..9e8bb4e43 100644 --- a/src/core/hle/service/am/am.h +++ b/src/core/hle/service/am/am.h @@ -116,6 +116,7 @@ private: void GetDefaultDisplayResolutionChangeEvent(Kernel::HLERequestContext& ctx); void GetOperationMode(Kernel::HLERequestContext& ctx); void GetPerformanceMode(Kernel::HLERequestContext& ctx); + void GetBootMode(Kernel::HLERequestContext& ctx); Kernel::SharedPtr<Kernel::Event> event; }; |