IWindowController.cs 958 B

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