diff options
| -rw-r--r-- | src/core/hle/service/apm/apm_interface.cpp | 14 |
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: | |||
| 17 | static const FunctionInfo functions[] = { | 17 | static const FunctionInfo functions[] = { |
| 18 | {0, &ISession::SetPerformanceConfiguration, "SetPerformanceConfiguration"}, | 18 | {0, &ISession::SetPerformanceConfiguration, "SetPerformanceConfiguration"}, |
| 19 | {1, &ISession::GetPerformanceConfiguration, "GetPerformanceConfiguration"}, | 19 | {1, &ISession::GetPerformanceConfiguration, "GetPerformanceConfiguration"}, |
| 20 | {2, nullptr, "SetCpuOverclockEnabled"}, | 20 | {2, &ISession::SetCpuOverclockEnabled, "SetCpuOverclockEnabled"}, |
| 21 | }; | 21 | }; |
| 22 | RegisterHandlers(functions); | 22 | RegisterHandlers(functions); |
| 23 | } | 23 | } |
| @@ -47,6 +47,18 @@ private: | |||
| 47 | rb.PushEnum(controller.GetCurrentPerformanceConfiguration(mode)); | 47 | rb.PushEnum(controller.GetCurrentPerformanceConfiguration(mode)); |
| 48 | } | 48 | } |
| 49 | 49 | ||
| 50 | void SetCpuOverclockEnabled(Kernel::HLERequestContext& ctx) { | ||
| 51 | IPC::RequestParser rp{ctx}; | ||
| 52 | |||
| 53 | const auto cpu_overclock_enabled = rp.Pop<bool>(); | ||
| 54 | |||
| 55 | LOG_WARNING(Service_APM, "(STUBBED) called, cpu_overclock_enabled={}", | ||
| 56 | cpu_overclock_enabled); | ||
| 57 | |||
| 58 | IPC::ResponseBuilder rb{ctx, 2}; | ||
| 59 | rb.Push(ResultSuccess); | ||
| 60 | } | ||
| 61 | |||
| 50 | Controller& controller; | 62 | Controller& controller; |
| 51 | }; | 63 | }; |
| 52 | 64 | ||