mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-12-27 10:40:04 +00:00
Merge pull request #5312 from german77/overclockenabled
apm: Stub IsCpuOverclockEnabled
This commit is contained in:
commit
32df83e55d
@ -56,7 +56,7 @@ APM::APM(Core::System& system_, std::shared_ptr<Module> apm_, Controller& contro
|
|||||||
static const FunctionInfo functions[] = {
|
static const FunctionInfo functions[] = {
|
||||||
{0, &APM::OpenSession, "OpenSession"},
|
{0, &APM::OpenSession, "OpenSession"},
|
||||||
{1, &APM::GetPerformanceMode, "GetPerformanceMode"},
|
{1, &APM::GetPerformanceMode, "GetPerformanceMode"},
|
||||||
{6, nullptr, "IsCpuOverclockEnabled"},
|
{6, &APM::IsCpuOverclockEnabled, "IsCpuOverclockEnabled"},
|
||||||
};
|
};
|
||||||
RegisterHandlers(functions);
|
RegisterHandlers(functions);
|
||||||
}
|
}
|
||||||
@ -78,6 +78,14 @@ void APM::GetPerformanceMode(Kernel::HLERequestContext& ctx) {
|
|||||||
rb.PushEnum(controller.GetCurrentPerformanceMode());
|
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_)
|
APM_Sys::APM_Sys(Core::System& system_, Controller& controller_)
|
||||||
: ServiceFramework{system_, "apm:sys"}, controller{controller_} {
|
: ServiceFramework{system_, "apm:sys"}, controller{controller_} {
|
||||||
// clang-format off
|
// clang-format off
|
||||||
|
@ -20,6 +20,7 @@ public:
|
|||||||
private:
|
private:
|
||||||
void OpenSession(Kernel::HLERequestContext& ctx);
|
void OpenSession(Kernel::HLERequestContext& ctx);
|
||||||
void GetPerformanceMode(Kernel::HLERequestContext& ctx);
|
void GetPerformanceMode(Kernel::HLERequestContext& ctx);
|
||||||
|
void IsCpuOverclockEnabled(Kernel::HLERequestContext& ctx);
|
||||||
|
|
||||||
std::shared_ptr<Module> apm;
|
std::shared_ptr<Module> apm;
|
||||||
Controller& controller;
|
Controller& controller;
|
||||||
|
Loading…
Reference in New Issue
Block a user