ILocationResolverManager.cs 847 B

12345678910111213141516171819202122232425262728293031
  1. using System.Collections.Generic;
  2. using Ryujinx.HLE.HOS.Ipc;
  3. using Ryujinx.HLE.FileSystem;
  4. namespace Ryujinx.HLE.HOS.Services.Lr
  5. {
  6. class ILocationResolverManager : IpcService
  7. {
  8. private Dictionary<int, ServiceProcessRequest> _commands;
  9. public override IReadOnlyDictionary<int, ServiceProcessRequest> Commands => _commands;
  10. public ILocationResolverManager()
  11. {
  12. _commands = new Dictionary<int, ServiceProcessRequest>
  13. {
  14. { 0, OpenLocationResolver }
  15. };
  16. }
  17. // OpenLocationResolver()
  18. private long OpenLocationResolver(ServiceCtx context)
  19. {
  20. StorageId storageId = (StorageId)context.RequestData.ReadByte();
  21. MakeObject(context, new ILocationResolver(storageId));
  22. return 0;
  23. }
  24. }
  25. }