ServiceSetSys.cs 887 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. Context.ResponseData.Write((int)Context.Ns.Settings.ThemeColor);
  22. return 0;
  23. }
  24. public static long SetColorSetId(ServiceCtx Context)
  25. {
  26. return 0;
  27. }
  28. }
  29. }