mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-27 17:34:03 +00:00
b001040c2f
* account: Services Refactoring * Remove extra empty space * Fix IProfile::Get * address gdkchan feedback
51 lines
No EOL
1.5 KiB
C#
51 lines
No EOL
1.5 KiB
C#
using LibHac;
|
|
using LibHac.Ncm;
|
|
using LibHac.Ns;
|
|
using System;
|
|
|
|
using ApplicationId = LibHac.ApplicationId;
|
|
|
|
namespace Ryujinx.HLE.HOS.Services.Arp
|
|
{
|
|
class LibHacIReader : LibHac.Arp.Impl.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
|
|
{
|
|
BaseStorageId = StorageId.BuiltInUser,
|
|
ApplicationId = new ApplicationId(System.Device.Application.TitleId)
|
|
};
|
|
|
|
return Result.Success;
|
|
}
|
|
|
|
public Result GetApplicationLaunchPropertyWithApplicationId(out LibHac.Arp.ApplicationLaunchProperty launchProperty, ApplicationId applicationId)
|
|
{
|
|
launchProperty = new LibHac.Arp.ApplicationLaunchProperty
|
|
{
|
|
BaseStorageId = StorageId.BuiltInUser,
|
|
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();
|
|
}
|
|
}
|
|
} |