VERY experimental Nintendo Switch 2 emulator
C++
Stub IsCpuOverclockEnabled
germanb28282edab38
diff --git a/src/core/hle/service/apm/interface.cpp b/src/core/hle/service/apm/interface.cppindex 298f6d5204..0bff97a378 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& controstatic 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 offdiff --git a/src/core/hle/service/apm/interface.h b/src/core/hle/service/apm/interface.hindex 7d57c49782..063ad53082 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;