diff options
| author | 2022-01-20 10:59:59 -0500 | |
|---|---|---|
| committer | 2022-01-20 21:07:26 -0500 | |
| commit | a3964732019bb8bee28a8944303552adf6eca075 (patch) | |
| tree | c2df0ae308c81df66a3f7ca24e2d0ed2500b80ff | |
| parent | Merge pull request #7726 from german77/clamp (diff) | |
| download | yuzu-a3964732019bb8bee28a8944303552adf6eca075.tar.gz yuzu-a3964732019bb8bee28a8944303552adf6eca075.tar.xz yuzu-a3964732019bb8bee28a8944303552adf6eca075.zip | |
service: apm: Stub ISession SetCpuOverclockEnabled
Since we don't currently support CPU overclocking within the emulated system, this can be stubbed for now, like APM IsCpuOverclockEnabled.
- Used by Gravity Rider Zero
| -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 | ||