ISession.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. using Ryujinx.Common.Logging;
  2. namespace Ryujinx.HLE.HOS.Services.Apm
  3. {
  4. class ISession : IpcService
  5. {
  6. public ISession() { }
  7. [Command(0)]
  8. // SetPerformanceConfiguration(nn::apm::PerformanceMode, nn::apm::PerformanceConfiguration)
  9. public ResultCode SetPerformanceConfiguration(ServiceCtx context)
  10. {
  11. PerformanceMode perfMode = (PerformanceMode)context.RequestData.ReadInt32();
  12. PerformanceConfiguration perfConfig = (PerformanceConfiguration)context.RequestData.ReadInt32();
  13. return ResultCode.Success;
  14. }
  15. [Command(1)]
  16. // GetPerformanceConfiguration(nn::apm::PerformanceMode) -> nn::apm::PerformanceConfiguration
  17. public ResultCode GetPerformanceConfiguration(ServiceCtx context)
  18. {
  19. PerformanceMode perfMode = (PerformanceMode)context.RequestData.ReadInt32();
  20. context.ResponseData.Write((uint)PerformanceConfiguration.PerformanceConfiguration1);
  21. Logger.PrintStub(LogClass.ServiceApm);
  22. return ResultCode.Success;
  23. }
  24. }
  25. }