2019-07-12 03:13:43 +02:00
|
|
|
|
using Ryujinx.HLE.FileSystem;
|
2018-11-18 20:37:41 +01:00
|
|
|
|
|
|
|
|
|
namespace Ryujinx.HLE.HOS.Services.Lr
|
|
|
|
|
{
|
2019-07-10 17:59:54 +02:00
|
|
|
|
[Service("lr")]
|
2018-11-18 20:37:41 +01:00
|
|
|
|
class ILocationResolverManager : IpcService
|
|
|
|
|
{
|
2019-07-12 03:13:43 +02:00
|
|
|
|
public ILocationResolverManager(ServiceCtx context) { }
|
2018-11-18 20:37:41 +01:00
|
|
|
|
|
2019-07-12 03:13:43 +02:00
|
|
|
|
[Command(0)]
|
2018-11-18 20:37:41 +01:00
|
|
|
|
// OpenLocationResolver()
|
2018-12-06 12:16:24 +01:00
|
|
|
|
private long OpenLocationResolver(ServiceCtx context)
|
2018-11-18 20:37:41 +01:00
|
|
|
|
{
|
2018-12-06 12:16:24 +01:00
|
|
|
|
StorageId storageId = (StorageId)context.RequestData.ReadByte();
|
2018-11-18 20:37:41 +01:00
|
|
|
|
|
2018-12-06 12:16:24 +01:00
|
|
|
|
MakeObject(context, new ILocationResolver(storageId));
|
2018-11-18 20:37:41 +01:00
|
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
2019-07-12 03:13:43 +02:00
|
|
|
|
}
|