IWindowController.cs 1008 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. using Ryujinx.HLE.HOS.Ipc;
  2. using Ryujinx.HLE.Logging;
  3. using System.Collections.Generic;
  4. namespace Ryujinx.HLE.HOS.Services.Am
  5. {
  6. class IWindowController : IpcService
  7. {
  8. private Dictionary<int, ServiceProcessRequest> m_Commands;
  9. public override IReadOnlyDictionary<int, ServiceProcessRequest> Commands => m_Commands;
  10. public IWindowController()
  11. {
  12. m_Commands = new Dictionary<int, ServiceProcessRequest>()
  13. {
  14. { 1, GetAppletResourceUserId },
  15. { 10, AcquireForegroundRights }
  16. };
  17. }
  18. public long GetAppletResourceUserId(ServiceCtx Context)
  19. {
  20. Context.Device.Log.PrintStub(LogClass.ServiceAm, "Stubbed.");
  21. Context.ResponseData.Write(0L);
  22. return 0;
  23. }
  24. public long AcquireForegroundRights(ServiceCtx Context)
  25. {
  26. Context.Device.Log.PrintStub(LogClass.ServiceAm, "Stubbed.");
  27. return 0;
  28. }
  29. }
  30. }