ILocationResolverManager.cs 885 B

1234567891011121314151617181920212223242526272829303132
  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. [Service("lr")]
  7. class ILocationResolverManager : IpcService
  8. {
  9. private Dictionary<int, ServiceProcessRequest> _commands;
  10. public override IReadOnlyDictionary<int, ServiceProcessRequest> Commands => _commands;
  11. public ILocationResolverManager(ServiceCtx context)
  12. {
  13. _commands = new Dictionary<int, ServiceProcessRequest>
  14. {
  15. { 0, OpenLocationResolver }
  16. };
  17. }
  18. // OpenLocationResolver()
  19. private long OpenLocationResolver(ServiceCtx context)
  20. {
  21. StorageId storageId = (StorageId)context.RequestData.ReadByte();
  22. MakeObject(context, new ILocationResolver(storageId));
  23. return 0;
  24. }
  25. }
  26. }