summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/am/am.cpp
diff options
context:
space:
mode:
authorNarr the Reg <juangerman-13@hotmail.com>2022-06-20 19:30:33 +0200
committerNarr the Reg <juangerman-13@hotmail.com>2022-06-20 19:35:58 +0200
commitf37b2e6f102d619bf32ce227ec41bc6613b70286 (patch)
tree9cbf688bee4157c78ba1b04fe27e9cfae4d0dd1b /src/core/hle/service/am/am.cpp
parentMerge pull request #8476 from liamwhite/gpu-wasnt-ready (diff)
downloadyuzu-f37b2e6f102d619bf32ce227ec41bc6613b70286.tar
yuzu-f37b2e6f102d619bf32ce227ec41bc6613b70286.tar.gz
yuzu-f37b2e6f102d619bf32ce227ec41bc6613b70286.tar.bz2
yuzu-f37b2e6f102d619bf32ce227ec41bc6613b70286.tar.lz
yuzu-f37b2e6f102d619bf32ce227ec41bc6613b70286.tar.xz
yuzu-f37b2e6f102d619bf32ce227ec41bc6613b70286.tar.zst
yuzu-f37b2e6f102d619bf32ce227ec41bc6613b70286.zip
Diffstat (limited to 'src/core/hle/service/am/am.cpp')
-rw-r--r--src/core/hle/service/am/am.cpp12
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");