IAddOnContentManager.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using Ryujinx.Core.OsHle.Ipc;
  2. using System.Collections.Generic;
  3. namespace Ryujinx.Core.OsHle.Services.Ns
  4. {
  5. class IAddOnContentManager : IpcService
  6. {
  7. private Dictionary<int, ServiceProcessRequest> m_Commands;
  8. public override IReadOnlyDictionary<int, ServiceProcessRequest> Commands => m_Commands;
  9. public IAddOnContentManager()
  10. {
  11. m_Commands = new Dictionary<int, ServiceProcessRequest>()
  12. {
  13. { 2, CountAddOnContent },
  14. { 3, ListAddOnContent }
  15. };
  16. }
  17. public static long CountAddOnContent(ServiceCtx Context)
  18. {
  19. Context.ResponseData.Write(0);
  20. Logging.Stub(LogClass.ServiceNs, "Stubbed");
  21. return 0;
  22. }
  23. public static long ListAddOnContent(ServiceCtx Context)
  24. {
  25. Logging.Stub(LogClass.ServiceNs, "Stubbed");
  26. //TODO: This is supposed to write a u32 array aswell.
  27. //It's unknown what it contains.
  28. Context.ResponseData.Write(0);
  29. return 0;
  30. }
  31. }
  32. }