IAddOnContentManager.cs 1.1 KB

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