diff options
author | bunnei <bunneidev@gmail.com> | 2021-01-10 23:30:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-10 23:30:13 +0100 |
commit | 32df83e55d4dcd9160eb4b16f41ac8a5aafc4e0a (patch) | |
tree | 035f3fcd76159262747db70867f34a416ae9a0f0 /src | |
parent | Merge pull request #5323 from Morph1984/enforce-c4101 (diff) | |
parent | Stub IsCpuOverclockEnabled (diff) | |
download | yuzu-32df83e55d4dcd9160eb4b16f41ac8a5aafc4e0a.tar yuzu-32df83e55d4dcd9160eb4b16f41ac8a5aafc4e0a.tar.gz yuzu-32df83e55d4dcd9160eb4b16f41ac8a5aafc4e0a.tar.bz2 yuzu-32df83e55d4dcd9160eb4b16f41ac8a5aafc4e0a.tar.lz yuzu-32df83e55d4dcd9160eb4b16f41ac8a5aafc4e0a.tar.xz yuzu-32df83e55d4dcd9160eb4b16f41ac8a5aafc4e0a.tar.zst yuzu-32df83e55d4dcd9160eb4b16f41ac8a5aafc4e0a.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/apm/interface.cpp | 10 | ||||
-rw-r--r-- | src/core/hle/service/apm/interface.h | 1 |
2 files changed, 10 insertions, 1 deletions
diff --git a/src/core/hle/service/apm/interface.cpp b/src/core/hle/service/apm/interface.cpp index 298f6d520..0bff97a37 100644 --- a/src/core/hle/service/apm/interface.cpp +++ b/src/core/hle/service/apm/interface.cpp @@ -56,7 +56,7 @@ APM::APM(Core::System& system_, std::shared_ptr<Module> apm_, Controller& contro static const FunctionInfo functions[] = { {0, &APM::OpenSession, "OpenSession"}, {1, &APM::GetPerformanceMode, "GetPerformanceMode"}, - {6, nullptr, "IsCpuOverclockEnabled"}, + {6, &APM::IsCpuOverclockEnabled, "IsCpuOverclockEnabled"}, }; RegisterHandlers(functions); } @@ -78,6 +78,14 @@ void APM::GetPerformanceMode(Kernel::HLERequestContext& ctx) { rb.PushEnum(controller.GetCurrentPerformanceMode()); } +void APM::IsCpuOverclockEnabled(Kernel::HLERequestContext& ctx) { + LOG_WARNING(Service_APM, "(STUBBED) called"); + + IPC::ResponseBuilder rb{ctx, 3}; + rb.Push(RESULT_SUCCESS); + rb.Push(false); +} + APM_Sys::APM_Sys(Core::System& system_, Controller& controller_) : ServiceFramework{system_, "apm:sys"}, controller{controller_} { // clang-format off diff --git a/src/core/hle/service/apm/interface.h b/src/core/hle/service/apm/interface.h index 7d57c4978..063ad5308 100644 --- a/src/core/hle/service/apm/interface.h +++ b/src/core/hle/service/apm/interface.h @@ -20,6 +20,7 @@ public: private: void OpenSession(Kernel::HLERequestContext& ctx); void GetPerformanceMode(Kernel::HLERequestContext& ctx); + void IsCpuOverclockEnabled(Kernel::HLERequestContext& ctx); std::shared_ptr<Module> apm; Controller& controller; |