ILocationResolverManager.cs 867 B

1234567891011121314151617181920212223242526272829303132
  1. using System;
  2. using System.Collections.Generic;
  3. using Ryujinx.HLE.HOS.Ipc;
  4. using Ryujinx.HLE.FileSystem;
  5. namespace Ryujinx.HLE.HOS.Services.Lr
  6. {
  7. class ILocationResolverManager : IpcService
  8. {
  9. private Dictionary<int, ServiceProcessRequest> m_Commands;
  10. public override IReadOnlyDictionary<int, ServiceProcessRequest> Commands => m_Commands;
  11. public ILocationResolverManager()
  12. {
  13. m_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. }