IAddOnContentManager.cs 984 B

12345678910111213141516171819202122232425262728293031323334353637
  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. return 0;
  21. }
  22. public static long ListAddOnContent(ServiceCtx Context)
  23. {
  24. //TODO: This is supposed to write a u32 array aswell.
  25. //It's unknown what it contains.
  26. Context.ResponseData.Write(0);
  27. return 0;
  28. }
  29. }
  30. }