2018-12-05 00:52:39 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
2018-11-18 19:37:41 +00:00
|
|
|
|
using Ryujinx.HLE.HOS.Ipc;
|
|
|
|
|
using Ryujinx.HLE.FileSystem;
|
|
|
|
|
|
|
|
|
|
namespace Ryujinx.HLE.HOS.Services.Lr
|
|
|
|
|
{
|
|
|
|
|
class ILocationResolverManager : IpcService
|
|
|
|
|
{
|
2018-12-05 00:52:39 +00:00
|
|
|
|
private Dictionary<int, ServiceProcessRequest> m_Commands;
|
2018-11-18 19:37:41 +00:00
|
|
|
|
|
2018-12-05 00:52:39 +00:00
|
|
|
|
public override IReadOnlyDictionary<int, ServiceProcessRequest> Commands => m_Commands;
|
2018-11-18 19:37:41 +00:00
|
|
|
|
|
|
|
|
|
public ILocationResolverManager()
|
|
|
|
|
{
|
2018-12-05 00:52:39 +00:00
|
|
|
|
m_Commands = new Dictionary<int, ServiceProcessRequest>()
|
2018-11-18 19:37:41 +00:00
|
|
|
|
{
|
2018-12-05 00:52:39 +00:00
|
|
|
|
{ 0, OpenLocationResolver },
|
2018-11-18 19:37:41 +00:00
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// OpenLocationResolver()
|
2018-12-05 00:52:39 +00:00
|
|
|
|
private long OpenLocationResolver(ServiceCtx Context)
|
2018-11-18 19:37:41 +00:00
|
|
|
|
{
|
2018-12-05 00:52:39 +00:00
|
|
|
|
StorageId StorageId = (StorageId)Context.RequestData.ReadByte();
|
2018-11-18 19:37:41 +00:00
|
|
|
|
|
2018-12-05 00:52:39 +00:00
|
|
|
|
MakeObject(Context, new ILocationResolver(StorageId));
|
2018-11-18 19:37:41 +00:00
|
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|