IAddOnContentManager.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. [Service("aoc:u")]
  7. class IAddOnContentManager : IpcService
  8. {
  9. private Dictionary<int, ServiceProcessRequest> _commands;
  10. public override IReadOnlyDictionary<int, ServiceProcessRequest> Commands => _commands;
  11. public IAddOnContentManager(ServiceCtx context)
  12. {
  13. _commands = new Dictionary<int, ServiceProcessRequest>
  14. {
  15. { 2, CountAddOnContent },
  16. { 3, ListAddOnContent }
  17. };
  18. }
  19. public static long CountAddOnContent(ServiceCtx context)
  20. {
  21. context.ResponseData.Write(0);
  22. Logger.PrintStub(LogClass.ServiceNs);
  23. return 0;
  24. }
  25. public static long ListAddOnContent(ServiceCtx context)
  26. {
  27. Logger.PrintStub(LogClass.ServiceNs);
  28. // TODO: This is supposed to write a u32 array aswell.
  29. // It's unknown what it contains.
  30. context.ResponseData.Write(0);
  31. return 0;
  32. }
  33. }
  34. }