diff options
author | german <german@thesoftwareartisans.com> | 2021-01-08 06:56:49 +0100 |
---|---|---|
committer | german <german@thesoftwareartisans.com> | 2021-01-08 16:44:56 +0100 |
commit | 385a4555d520b38a409143deeb29593ca6f885fd (patch) | |
tree | 5f020a9f7785c0fba26819b654971b25fe060c5b /src/core/hle | |
parent | Merge pull request #5310 from lat9nq/fix-disable-web-service (diff) | |
download | yuzu-385a4555d520b38a409143deeb29593ca6f885fd.tar yuzu-385a4555d520b38a409143deeb29593ca6f885fd.tar.gz yuzu-385a4555d520b38a409143deeb29593ca6f885fd.tar.bz2 yuzu-385a4555d520b38a409143deeb29593ca6f885fd.tar.lz yuzu-385a4555d520b38a409143deeb29593ca6f885fd.tar.xz yuzu-385a4555d520b38a409143deeb29593ca6f885fd.tar.zst yuzu-385a4555d520b38a409143deeb29593ca6f885fd.zip |
Diffstat (limited to 'src/core/hle')
-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; |