2020-04-30 05:58:19 +01:00
|
|
|
|
using LibHac;
|
|
|
|
|
using LibHac.Arp.Impl;
|
|
|
|
|
using LibHac.Ncm;
|
|
|
|
|
using LibHac.Ns;
|
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
using ApplicationId = LibHac.ApplicationId;
|
|
|
|
|
|
|
|
|
|
namespace Ryujinx.HLE.HOS.Services.Arp
|
|
|
|
|
{
|
|
|
|
|
class LibHacIReader : IReader
|
|
|
|
|
{
|
|
|
|
|
private Horizon System { get; }
|
|
|
|
|
|
|
|
|
|
public LibHacIReader(Horizon system)
|
|
|
|
|
{
|
|
|
|
|
System = system;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Result GetApplicationLaunchProperty(out LibHac.Arp.ApplicationLaunchProperty launchProperty, ulong processId)
|
|
|
|
|
{
|
|
|
|
|
launchProperty = new LibHac.Arp.ApplicationLaunchProperty();
|
|
|
|
|
|
|
|
|
|
launchProperty.BaseStorageId = StorageId.BuiltInUser;
|
2020-05-15 07:16:46 +01:00
|
|
|
|
launchProperty.ApplicationId = new ApplicationId(System.Device.Application.TitleId);
|
2020-04-30 05:58:19 +01:00
|
|
|
|
|
|
|
|
|
return Result.Success;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Result GetApplicationLaunchPropertyWithApplicationId(out LibHac.Arp.ApplicationLaunchProperty launchProperty,
|
|
|
|
|
ApplicationId applicationId)
|
|
|
|
|
{
|
|
|
|
|
launchProperty = new LibHac.Arp.ApplicationLaunchProperty();
|
|
|
|
|
|
|
|
|
|
launchProperty.BaseStorageId = StorageId.BuiltInUser;
|
|
|
|
|
launchProperty.ApplicationId = applicationId;
|
|
|
|
|
|
|
|
|
|
return Result.Success;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Result GetApplicationControlProperty(out ApplicationControlProperty controlProperty, ulong processId)
|
|
|
|
|
{
|
|
|
|
|
throw new NotImplementedException();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Result GetApplicationControlPropertyWithApplicationId(out ApplicationControlProperty controlProperty,
|
|
|
|
|
ApplicationId applicationId)
|
|
|
|
|
{
|
|
|
|
|
throw new NotImplementedException();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|