Ryujinx/Ryujinx.HLE/HOS/Services/Lr/ILocationResolverManager.cs

32 lines
850 B
C#
Raw Normal View History

2018-12-01 21:29:33 +01:00
using System.Collections.Generic;
using Ryujinx.HLE.HOS.Ipc;
using Ryujinx.HLE.FileSystem;
namespace Ryujinx.HLE.HOS.Services.Lr
{
class ILocationResolverManager : IpcService
{
2018-12-01 21:01:59 +01:00
private Dictionary<int, ServiceProcessRequest> _commands;
2018-12-01 21:01:59 +01:00
public override IReadOnlyDictionary<int, ServiceProcessRequest> Commands => _commands;
public ILocationResolverManager()
{
2018-12-01 21:01:59 +01:00
_commands = new Dictionary<int, ServiceProcessRequest>()
{
{ 0, OpenLocationResolver },
};
}
// OpenLocationResolver()
2018-12-01 21:01:59 +01:00
private long OpenLocationResolver(ServiceCtx context)
{
2018-12-01 21:01:59 +01:00
StorageId storageId = (StorageId)context.RequestData.ReadByte();
2018-12-01 21:01:59 +01:00
MakeObject(context, new ILocationResolver(storageId));
return 0;
}
}
}