diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2022-06-20 22:59:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-20 22:59:26 +0200 |
commit | 0d5792cc57112c7db54cbd362d1dcdadae6ec27d (patch) | |
tree | 9cbf688bee4157c78ba1b04fe27e9cfae4d0dd1b /src/core/hle/service/am/am.cpp | |
parent | Merge pull request #8476 from liamwhite/gpu-wasnt-ready (diff) | |
parent | service: am: Stub PerformSystemButtonPressingIfInFocus (diff) | |
download | yuzu-0d5792cc57112c7db54cbd362d1dcdadae6ec27d.tar yuzu-0d5792cc57112c7db54cbd362d1dcdadae6ec27d.tar.gz yuzu-0d5792cc57112c7db54cbd362d1dcdadae6ec27d.tar.bz2 yuzu-0d5792cc57112c7db54cbd362d1dcdadae6ec27d.tar.lz yuzu-0d5792cc57112c7db54cbd362d1dcdadae6ec27d.tar.xz yuzu-0d5792cc57112c7db54cbd362d1dcdadae6ec27d.tar.zst yuzu-0d5792cc57112c7db54cbd362d1dcdadae6ec27d.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/am/am.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp index 4657bdabc..c4a93e524 100644 --- a/src/core/hle/service/am/am.cpp +++ b/src/core/hle/service/am/am.cpp @@ -686,7 +686,7 @@ ICommonStateGetter::ICommonStateGetter(Core::System& system_, {66, &ICommonStateGetter::SetCpuBoostMode, "SetCpuBoostMode"}, {67, nullptr, "CancelCpuBoostMode"}, {68, nullptr, "GetBuiltInDisplayType"}, - {80, nullptr, "PerformSystemButtonPressingIfInFocus"}, + {80, &ICommonStateGetter::PerformSystemButtonPressingIfInFocus, "PerformSystemButtonPressingIfInFocus"}, {90, nullptr, "SetPerformanceConfigurationChangedNotification"}, {91, nullptr, "GetCurrentPerformanceConfiguration"}, {100, nullptr, "SetHandlingHomeButtonShortPressedEnabled"}, @@ -826,6 +826,16 @@ void ICommonStateGetter::SetCpuBoostMode(Kernel::HLERequestContext& ctx) { apm_sys->SetCpuBoostMode(ctx); } +void ICommonStateGetter::PerformSystemButtonPressingIfInFocus(Kernel::HLERequestContext& ctx) { + IPC::RequestParser rp{ctx}; + const auto system_button{rp.PopEnum<SystemButtonType>()}; + + LOG_WARNING(Service_AM, "(STUBBED) called, system_button={}", system_button); + + IPC::ResponseBuilder rb{ctx, 2}; + rb.Push(ResultSuccess); +} + void ICommonStateGetter::SetRequestExitToLibraryAppletAtExecuteNextProgramEnabled( Kernel::HLERequestContext& ctx) { LOG_WARNING(Service_AM, "(STUBBED) called"); |