ApplicationLaunchProperty.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. using LibHac.Ncm;
  2. namespace Ryujinx.HLE.HOS.Services.Arp
  3. {
  4. class ApplicationLaunchProperty
  5. {
  6. public ulong TitleId;
  7. public int Version;
  8. public byte BaseGameStorageId;
  9. public byte UpdateGameStorageId;
  10. #pragma warning disable CS0649
  11. public short Padding;
  12. #pragma warning restore CS0649
  13. public static ApplicationLaunchProperty Default
  14. {
  15. get
  16. {
  17. return new ApplicationLaunchProperty
  18. {
  19. TitleId = 0x00,
  20. Version = 0x00,
  21. BaseGameStorageId = (byte)StorageId.BuiltInSystem,
  22. UpdateGameStorageId = (byte)StorageId.None
  23. };
  24. }
  25. }
  26. public static ApplicationLaunchProperty GetByPid(ServiceCtx context)
  27. {
  28. // TODO: Handle ApplicationLaunchProperty as array when pid will be supported and return the right item.
  29. // For now we can hardcode values, and fix it after GetApplicationLaunchProperty is implemented.
  30. return new ApplicationLaunchProperty
  31. {
  32. TitleId = context.Device.Application.TitleId,
  33. Version = 0x00,
  34. BaseGameStorageId = (byte)StorageId.BuiltInSystem,
  35. UpdateGameStorageId = (byte)StorageId.None
  36. };
  37. }
  38. }
  39. }