summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/apm
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-01-22 02:13:52 +0100
committerGitHub <noreply@github.com>2022-01-22 02:13:52 +0100
commitcef7649bedc2c8bf35fa52e58538b48030a1d266 (patch)
treefc227247e09ac71bcd86cf5e3e1b40f9fc359acc /src/core/hle/service/apm
parentMerge pull request #7756 from lioncash/service (diff)
parentservice: apm: Stub ISession SetCpuOverclockEnabled (diff)
downloadyuzu-cef7649bedc2c8bf35fa52e58538b48030a1d266.tar
yuzu-cef7649bedc2c8bf35fa52e58538b48030a1d266.tar.gz
yuzu-cef7649bedc2c8bf35fa52e58538b48030a1d266.tar.bz2
yuzu-cef7649bedc2c8bf35fa52e58538b48030a1d266.tar.lz
yuzu-cef7649bedc2c8bf35fa52e58538b48030a1d266.tar.xz
yuzu-cef7649bedc2c8bf35fa52e58538b48030a1d266.tar.zst
yuzu-cef7649bedc2c8bf35fa52e58538b48030a1d266.zip
Diffstat (limited to 'src/core/hle/service/apm')
-rw-r--r--src/core/hle/service/apm/apm_interface.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/core/hle/service/apm/apm_interface.cpp b/src/core/hle/service/apm/apm_interface.cpp
index e58bad083..6163e3294 100644
--- a/src/core/hle/service/apm/apm_interface.cpp
+++ b/src/core/hle/service/apm/apm_interface.cpp
@@ -17,7 +17,7 @@ public:
static const FunctionInfo functions[] = {
{0, &ISession::SetPerformanceConfiguration, "SetPerformanceConfiguration"},
{1, &ISession::GetPerformanceConfiguration, "GetPerformanceConfiguration"},
- {2, nullptr, "SetCpuOverclockEnabled"},
+ {2, &ISession::SetCpuOverclockEnabled, "SetCpuOverclockEnabled"},
};
RegisterHandlers(functions);
}
@@ -47,6 +47,18 @@ private:
rb.PushEnum(controller.GetCurrentPerformanceConfiguration(mode));
}
+ void SetCpuOverclockEnabled(Kernel::HLERequestContext& ctx) {
+ IPC::RequestParser rp{ctx};
+
+ const auto cpu_overclock_enabled = rp.Pop<bool>();
+
+ LOG_WARNING(Service_APM, "(STUBBED) called, cpu_overclock_enabled={}",
+ cpu_overclock_enabled);
+
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(ResultSuccess);
+ }
+
Controller& controller;
};