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