summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2022-01-20 16:59:59 +0100
committerMorph <39850852+Morph1984@users.noreply.github.com>2022-01-21 03:07:26 +0100
commita3964732019bb8bee28a8944303552adf6eca075 (patch)
treec2df0ae308c81df66a3f7ca24e2d0ed2500b80ff
parentMerge pull request #7726 from german77/clamp (diff)
downloadyuzu-a3964732019bb8bee28a8944303552adf6eca075.tar
yuzu-a3964732019bb8bee28a8944303552adf6eca075.tar.gz
yuzu-a3964732019bb8bee28a8944303552adf6eca075.tar.bz2
yuzu-a3964732019bb8bee28a8944303552adf6eca075.tar.lz
yuzu-a3964732019bb8bee28a8944303552adf6eca075.tar.xz
yuzu-a3964732019bb8bee28a8944303552adf6eca075.tar.zst
yuzu-a3964732019bb8bee28a8944303552adf6eca075.zip
Diffstat (limited to '')
-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;
};