IRequest.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. using Ryujinx.HLE.Logging;
  2. using Ryujinx.HLE.OsHle.Ipc;
  3. using System.Collections.Generic;
  4. namespace Ryujinx.HLE.OsHle.Services.Mm
  5. {
  6. class IRequest : IpcService
  7. {
  8. private Dictionary<int, ServiceProcessRequest> m_Commands;
  9. public override IReadOnlyDictionary<int, ServiceProcessRequest> Commands => m_Commands;
  10. public IRequest()
  11. {
  12. m_Commands = new Dictionary<int, ServiceProcessRequest>()
  13. {
  14. { 4, Initialize },
  15. { 6, SetAndWait },
  16. { 7, Get }
  17. };
  18. }
  19. public long Initialize(ServiceCtx Context)
  20. {
  21. Context.Ns.Log.PrintStub(LogClass.ServiceMm, "Stubbed.");
  22. return 0;
  23. }
  24. public long SetAndWait(ServiceCtx Context)
  25. {
  26. Context.Ns.Log.PrintStub(LogClass.ServiceMm, "Stubbed.");
  27. return 0;
  28. }
  29. public long Get(ServiceCtx Context)
  30. {
  31. Context.ResponseData.Write(0);
  32. Context.Ns.Log.PrintStub(LogClass.ServiceMm, "Stubbed.");
  33. return 0;
  34. }
  35. }
  36. }