2022-03-22 12:46:16 -07:00
|
|
|
|
using LibHac.Ncm;
|
2019-09-18 17:45:11 -07:00
|
|
|
|
using Ryujinx.HLE.HOS.Services.Ncm.Lr.LocationResolverManager;
|
2018-11-18 11:37:41 -08:00
|
|
|
|
|
2019-09-18 17:45:11 -07:00
|
|
|
|
namespace Ryujinx.HLE.HOS.Services.Ncm.Lr
|
2018-11-18 11:37:41 -08:00
|
|
|
|
{
|
2019-07-10 08:59:54 -07:00
|
|
|
|
[Service("lr")]
|
2018-11-18 11:37:41 -08:00
|
|
|
|
class ILocationResolverManager : IpcService
|
|
|
|
|
{
|
2019-07-11 18:13:43 -07:00
|
|
|
|
public ILocationResolverManager(ServiceCtx context) { }
|
2018-11-18 11:37:41 -08:00
|
|
|
|
|
2021-04-13 15:01:24 -07:00
|
|
|
|
[CommandHipc(0)]
|
2018-11-18 11:37:41 -08:00
|
|
|
|
// OpenLocationResolver()
|
2019-07-14 14:22:53 -07:00
|
|
|
|
public ResultCode OpenLocationResolver(ServiceCtx context)
|
2018-11-18 11:37:41 -08:00
|
|
|
|
{
|
2018-12-06 03:16:24 -08:00
|
|
|
|
StorageId storageId = (StorageId)context.RequestData.ReadByte();
|
2018-11-18 11:37:41 -08:00
|
|
|
|
|
2018-12-06 03:16:24 -08:00
|
|
|
|
MakeObject(context, new ILocationResolver(storageId));
|
2018-11-18 11:37:41 -08:00
|
|
|
|
|
2019-07-14 12:04:38 -07:00
|
|
|
|
return ResultCode.Success;
|
2018-11-18 11:37:41 -08:00
|
|
|
|
}
|
|
|
|
|
}
|
2019-07-11 18:13:43 -07:00
|
|
|
|
}
|