2019-07-11 21:13:43 -04:00
|
|
|
|
using Ryujinx.HLE.FileSystem;
|
2018-11-18 14:37:41 -05:00
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
{
|
2019-07-11 21:13:43 -04:00
|
|
|
|
public ILocationResolverManager(ServiceCtx context) { }
|
2018-11-18 14:37:41 -05:00
|
|
|
|
|
2019-07-11 21:13:43 -04:00
|
|
|
|
[Command(0)]
|
2018-11-18 14:37:41 -05:00
|
|
|
|
// OpenLocationResolver()
|
2019-07-14 15:04:38 -04:00
|
|
|
|
private 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
|
|
|
|
}
|