aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/HOS/Services/Lr/ILocationResolverManager.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.HLE/HOS/Services/Lr/ILocationResolverManager.cs')
-rw-r--r--Ryujinx.HLE/HOS/Services/Lr/ILocationResolverManager.cs32
1 files changed, 32 insertions, 0 deletions
diff --git a/Ryujinx.HLE/HOS/Services/Lr/ILocationResolverManager.cs b/Ryujinx.HLE/HOS/Services/Lr/ILocationResolverManager.cs
new file mode 100644
index 00000000..77710f76
--- /dev/null
+++ b/Ryujinx.HLE/HOS/Services/Lr/ILocationResolverManager.cs
@@ -0,0 +1,32 @@
+using System;
+using System.Collections.Generic;
+using Ryujinx.HLE.HOS.Ipc;
+using Ryujinx.HLE.FileSystem;
+
+namespace Ryujinx.HLE.HOS.Services.Lr
+{
+ class ILocationResolverManager : IpcService
+ {
+ private Dictionary<int, ServiceProcessRequest> m_Commands;
+
+ public override IReadOnlyDictionary<int, ServiceProcessRequest> Commands => m_Commands;
+
+ public ILocationResolverManager()
+ {
+ m_Commands = new Dictionary<int, ServiceProcessRequest>()
+ {
+ { 0, OpenLocationResolver },
+ };
+ }
+
+ // OpenLocationResolver()
+ private long OpenLocationResolver(ServiceCtx Context)
+ {
+ StorageId StorageId = (StorageId)Context.RequestData.ReadByte();
+
+ MakeObject(Context, new ILocationResolver(StorageId));
+
+ return 0;
+ }
+ }
+}