2019-07-11 21:13:43 -04:00
|
|
|
|
using Ryujinx.HLE.FileSystem;
|
2019-09-18 20:45:11 -04:00
|
|
|
|
using Ryujinx.HLE.HOS.Services.Ncm.Lr.LocationResolverManager;
|
2018-11-18 14:37:41 -05:00
|
|
|
|
|
2019-09-18 20:45:11 -04:00
|
|
|
|
namespace Ryujinx.HLE.HOS.Services.Ncm.Lr
|
2018-11-18 14:37:41 -05:00
|
|
|
|
{
|
2019-07-10 11:59:54 -04:00
|
|
|
|
[Service("lr")]
|
2018-11-18 14:37:41 -05:00
|
|
|
|
class ILocationResolverManager : IpcService
|
|
|
|
|
{
|
2019-07-11 21:13:43 -04:00
|
|
|
|
public ILocationResolverManager(ServiceCtx context) { }
|
2018-11-18 14:37:41 -05:00
|
|
|
|
|
2021-04-13 18:01:24 -04:00
|
|
|
|
[CommandHipc(0)]
|
2018-11-18 14:37:41 -05:00
|
|
|
|
// OpenLocationResolver()
|
2019-07-14 17:22:53 -04:00
|
|
|
|
public ResultCode 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
|
|
|
|
|
2019-07-14 15:04:38 -04:00
|
|
|
|
return ResultCode.Success;
|
2018-11-18 14:37:41 -05:00
|
|
|
|
}
|
|
|
|
|
}
|
2019-07-11 21:13:43 -04:00
|
|
|
|
}
|