IWindowController.cs 830 B

123456789101112131415161718192021222324252627282930313233
  1. using Ryujinx.Core.OsHle.Ipc;
  2. using System.Collections.Generic;
  3. namespace Ryujinx.Core.OsHle.Objects.Am
  4. {
  5. class IWindowController : IIpcInterface
  6. {
  7. private Dictionary<int, ServiceProcessRequest> m_Commands;
  8. public 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. Context.ResponseData.Write(0L);
  20. return 0;
  21. }
  22. public long AcquireForegroundRights(ServiceCtx Context)
  23. {
  24. return 0;
  25. }
  26. }
  27. }