1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-11-11 23:36:40 +00:00
Ryujinx/Ryujinx.HLE/HOS/Services/Apm/ManagerServer.cs

31 lines
830 B
C#
Raw Normal View History

namespace Ryujinx.HLE.HOS.Services.Apm
{
[Service("apm")]
[Service("apm:am")] // 8.0.0+
class ManagerServer : IManager
{
private readonly ServiceCtx _context;
public ManagerServer(ServiceCtx context) : base(context)
{
_context = context;
}
protected override ResultCode OpenSession(out SessionServer sessionServer)
{
sessionServer = new SessionServer(_context);
return ResultCode.Success;
}
protected override PerformanceMode GetPerformanceMode()
{
return _context.Device.System.PerformanceState.PerformanceMode;
}
protected override bool IsCpuOverclockEnabled()
{
return _context.Device.System.PerformanceState.CpuOverclockEnabled;
}
}
}