LibHacIReader.cs 1.5 KB

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