diff options
| author | Alex Barney <thealexbarney@gmail.com> | 2020-04-29 21:58:19 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-30 14:58:19 +1000 |
| commit | 7ab3fccd4d13bf3ed07a7fa207cfee61b43c56f3 (patch) | |
| tree | 744caac5f15b69f1c411c0dc4f491f9f56a57278 /Ryujinx.HLE/HOS/Services/Arp | |
| parent | 23170da5a0092c2a9d2d5d0b49da5ee1f53637ac (diff) | |
Add BCAT delivery cache support (#1154)
* Initial bcat delivery cache support
* Use LibHac 0.11.0
* Add option to open the BCAT savedata directory
Diffstat (limited to 'Ryujinx.HLE/HOS/Services/Arp')
| -rw-r--r-- | Ryujinx.HLE/HOS/Services/Arp/LibHacIReader.cs | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/Ryujinx.HLE/HOS/Services/Arp/LibHacIReader.cs b/Ryujinx.HLE/HOS/Services/Arp/LibHacIReader.cs new file mode 100644 index 00000000..77f02e8d --- /dev/null +++ b/Ryujinx.HLE/HOS/Services/Arp/LibHacIReader.cs @@ -0,0 +1,52 @@ +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; + launchProperty.ApplicationId = new ApplicationId(System.TitleId); + + 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(); + } + } +} |
