ServiceVi.cs 786 B

12345678910111213141516171819202122232425262728293031
  1. using Ryujinx.Core.OsHle.Ipc;
  2. using System.Collections.Generic;
  3. using static Ryujinx.Core.OsHle.IpcServices.ObjHelper;
  4. namespace Ryujinx.Core.OsHle.IpcServices.Vi
  5. {
  6. class ServiceVi : IIpcService
  7. {
  8. private Dictionary<int, ServiceProcessRequest> m_Commands;
  9. public IReadOnlyDictionary<int, ServiceProcessRequest> Commands => m_Commands;
  10. public ServiceVi()
  11. {
  12. m_Commands = new Dictionary<int, ServiceProcessRequest>()
  13. {
  14. { 2, GetDisplayService }
  15. };
  16. }
  17. public long GetDisplayService(ServiceCtx Context)
  18. {
  19. int Unknown = Context.RequestData.ReadInt32();
  20. MakeObject(Context, new IApplicationDisplayService());
  21. return 0;
  22. }
  23. }
  24. }