2018-12-06 06:16:24 -05:00
|
|
|
|
using System.Collections.Generic;
|
2018-11-18 14:37:41 -05:00
|
|
|
|
using Ryujinx.HLE.HOS.Ipc;
|
|
|
|
|
using Ryujinx.HLE.FileSystem;
|
|
|
|
|
|
|
|
|
|
namespace Ryujinx.HLE.HOS.Services.Lr
|
|
|
|
|
{
|
2019-07-10 11:59:54 -04:00
|
|
|
|
[Service("lr")]
|
2018-11-18 14:37:41 -05:00
|
|
|
|
class ILocationResolverManager : IpcService
|
|
|
|
|
{
|
2018-12-06 06:16:24 -05:00
|
|
|
|
private Dictionary<int, ServiceProcessRequest> _commands;
|
2018-11-18 14:37:41 -05:00
|
|
|
|
|
2018-12-06 06:16:24 -05:00
|
|
|
|
public override IReadOnlyDictionary<int, ServiceProcessRequest> Commands => _commands;
|
2018-11-18 14:37:41 -05:00
|
|
|
|
|
2019-07-10 11:59:54 -04:00
|
|
|
|
public ILocationResolverManager(ServiceCtx context)
|
2018-11-18 14:37:41 -05:00
|
|
|
|
{
|
2018-12-06 06:16:24 -05:00
|
|
|
|
_commands = new Dictionary<int, ServiceProcessRequest>
|
2018-11-18 14:37:41 -05:00
|
|
|
|
{
|
2018-12-06 06:16:24 -05:00
|
|
|
|
{ 0, OpenLocationResolver }
|
2018-11-18 14:37:41 -05:00
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// OpenLocationResolver()
|
2018-12-06 06:16:24 -05:00
|
|
|
|
private long OpenLocationResolver(ServiceCtx context)
|
2018-11-18 14:37:41 -05:00
|
|
|
|
{
|
2018-12-06 06:16:24 -05:00
|
|
|
|
StorageId storageId = (StorageId)context.RequestData.ReadByte();
|
2018-11-18 14:37:41 -05:00
|
|
|
|
|
2018-12-06 06:16:24 -05:00
|
|
|
|
MakeObject(context, new ILocationResolver(storageId));
|
2018-11-18 14:37:41 -05:00
|
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|