Ryujinx/src/Ryujinx.HLE/HOS/Services/Apm/SystemManagerServer.cs
TSRBerry 2989c163a8
editorconfig: Set default encoding to UTF-8 (#5793)
* editorconfig: Add default charset

* Change file encoding from UTF-8-BOM to UTF-8
2023-12-04 14:17:13 +01:00

28 lines
931 B
C#

namespace Ryujinx.HLE.HOS.Services.Apm
{
[Service("apm:sys")]
class SystemManagerServer : ISystemManager
{
private readonly ServiceCtx _context;
public SystemManagerServer(ServiceCtx context) : base(context)
{
_context = context;
}
protected override void RequestPerformanceMode(PerformanceMode performanceMode)
{
_context.Device.System.PerformanceState.PerformanceMode = performanceMode;
}
internal override void SetCpuBoostMode(CpuBoostMode cpuBoostMode)
{
_context.Device.System.PerformanceState.CpuBoostMode = cpuBoostMode;
}
protected override PerformanceConfiguration GetCurrentPerformanceConfiguration()
{
return _context.Device.System.PerformanceState.GetCurrentPerformanceConfiguration(_context.Device.System.PerformanceState.PerformanceMode);
}
}
}