ServiceSetSys.cs 889 B

1234567891011121314151617181920212223242526272829303132333435
  1. using ChocolArm64.Memory;
  2. using Ryujinx.Core.OsHle.Ipc;
  3. using System;
  4. using System.Collections.Generic;
  5. namespace Ryujinx.Core.OsHle.IpcServices.Set
  6. {
  7. class ServiceSetSys : IIpcService
  8. {
  9. private Dictionary<int, ServiceProcessRequest> m_Commands;
  10. public IReadOnlyDictionary<int, ServiceProcessRequest> Commands => m_Commands;
  11. public ServiceSetSys()
  12. {
  13. m_Commands = new Dictionary<int, ServiceProcessRequest>()
  14. {
  15. { 23, GetColorSetId },
  16. { 24, SetColorSetId }
  17. };
  18. }
  19. public static long GetColorSetId(ServiceCtx Context)
  20. {
  21. //Use white system theme
  22. Context.ResponseData.Write(1);
  23. return 0;
  24. }
  25. public static long SetColorSetId(ServiceCtx Context)
  26. {
  27. return 0;
  28. }
  29. }
  30. }