mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-22 10:51:50 -05:00
Merge pull request #7752 from Morph1984/SetCpuOverclockEnabled
service: apm: Stub ISession SetCpuOverclockEnabled
This commit is contained in:
commit
cef7649bed
1 changed files with 13 additions and 1 deletions
|
@ -17,7 +17,7 @@ public:
|
||||||
static const FunctionInfo functions[] = {
|
static const FunctionInfo functions[] = {
|
||||||
{0, &ISession::SetPerformanceConfiguration, "SetPerformanceConfiguration"},
|
{0, &ISession::SetPerformanceConfiguration, "SetPerformanceConfiguration"},
|
||||||
{1, &ISession::GetPerformanceConfiguration, "GetPerformanceConfiguration"},
|
{1, &ISession::GetPerformanceConfiguration, "GetPerformanceConfiguration"},
|
||||||
{2, nullptr, "SetCpuOverclockEnabled"},
|
{2, &ISession::SetCpuOverclockEnabled, "SetCpuOverclockEnabled"},
|
||||||
};
|
};
|
||||||
RegisterHandlers(functions);
|
RegisterHandlers(functions);
|
||||||
}
|
}
|
||||||
|
@ -47,6 +47,18 @@ private:
|
||||||
rb.PushEnum(controller.GetCurrentPerformanceConfiguration(mode));
|
rb.PushEnum(controller.GetCurrentPerformanceConfiguration(mode));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void SetCpuOverclockEnabled(Kernel::HLERequestContext& ctx) {
|
||||||
|
IPC::RequestParser rp{ctx};
|
||||||
|
|
||||||
|
const auto cpu_overclock_enabled = rp.Pop<bool>();
|
||||||
|
|
||||||
|
LOG_WARNING(Service_APM, "(STUBBED) called, cpu_overclock_enabled={}",
|
||||||
|
cpu_overclock_enabled);
|
||||||
|
|
||||||
|
IPC::ResponseBuilder rb{ctx, 2};
|
||||||
|
rb.Push(ResultSuccess);
|
||||||
|
}
|
||||||
|
|
||||||
Controller& controller;
|
Controller& controller;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue