diff options
| author | 2022-01-21 17:13:52 -0800 | |
|---|---|---|
| committer | 2022-01-21 17:13:52 -0800 | |
| commit | cef7649bedc2c8bf35fa52e58538b48030a1d266 (patch) | |
| tree | fc227247e09ac71bcd86cf5e3e1b40f9fc359acc | |
| parent | Merge pull request #7756 from lioncash/service (diff) | |
| parent | service: apm: Stub ISession SetCpuOverclockEnabled (diff) | |
| download | yuzu-cef7649bedc2c8bf35fa52e58538b48030a1d266.tar.gz yuzu-cef7649bedc2c8bf35fa52e58538b48030a1d266.tar.xz yuzu-cef7649bedc2c8bf35fa52e58538b48030a1d266.zip | |
Merge pull request #7752 from Morph1984/SetCpuOverclockEnabled
service: apm: Stub ISession SetCpuOverclockEnabled
Diffstat (limited to '')
| -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 | ||