ISession.cs 744 B

12345678910111213141516171819202122232425262728
  1. using Ryujinx.Core.OsHle.Ipc;
  2. using System.Collections.Generic;
  3. namespace Ryujinx.Core.OsHle.Objects.Apm
  4. {
  5. class ISession : IIpcInterface
  6. {
  7. private Dictionary<int, ServiceProcessRequest> m_Commands;
  8. public IReadOnlyDictionary<int, ServiceProcessRequest> Commands => m_Commands;
  9. public ISession()
  10. {
  11. m_Commands = new Dictionary<int, ServiceProcessRequest>()
  12. {
  13. { 0, SetPerformanceConfiguration }
  14. };
  15. }
  16. public long SetPerformanceConfiguration(ServiceCtx Context)
  17. {
  18. int PerfMode = Context.RequestData.ReadInt32();
  19. int PerfConfig = Context.RequestData.ReadInt32();
  20. return 0;
  21. }
  22. }
  23. }