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