IWindowController.cs 969 B

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