LibHacIReader.cs 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. using LibHac;
  2. using LibHac.Arp.Impl;
  3. using LibHac.Ncm;
  4. using LibHac.Ns;
  5. using System;
  6. using ApplicationId = LibHac.ApplicationId;
  7. namespace Ryujinx.HLE.HOS.Services.Arp
  8. {
  9. class LibHacIReader : IReader
  10. {
  11. private Horizon System { get; }
  12. public LibHacIReader(Horizon system)
  13. {
  14. System = system;
  15. }
  16. public Result GetApplicationLaunchProperty(out LibHac.Arp.ApplicationLaunchProperty launchProperty, ulong processId)
  17. {
  18. launchProperty = new LibHac.Arp.ApplicationLaunchProperty();
  19. launchProperty.BaseStorageId = StorageId.BuiltInUser;
  20. launchProperty.ApplicationId = new ApplicationId(System.Device.Application.TitleId);
  21. return Result.Success;
  22. }
  23. public Result GetApplicationLaunchPropertyWithApplicationId(out LibHac.Arp.ApplicationLaunchProperty launchProperty,
  24. ApplicationId applicationId)
  25. {
  26. launchProperty = new LibHac.Arp.ApplicationLaunchProperty();
  27. launchProperty.BaseStorageId = StorageId.BuiltInUser;
  28. launchProperty.ApplicationId = applicationId;
  29. return Result.Success;
  30. }
  31. public Result GetApplicationControlProperty(out ApplicationControlProperty controlProperty, ulong processId)
  32. {
  33. throw new NotImplementedException();
  34. }
  35. public Result GetApplicationControlPropertyWithApplicationId(out ApplicationControlProperty controlProperty,
  36. ApplicationId applicationId)
  37. {
  38. throw new NotImplementedException();
  39. }
  40. }
  41. }