ApplicationLaunchProperty.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using Ryujinx.HLE.FileSystem;
  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. public short Padding;
  11. public static ApplicationLaunchProperty Default
  12. {
  13. get
  14. {
  15. return new ApplicationLaunchProperty
  16. {
  17. TitleId = 0x00,
  18. Version = 0x00,
  19. BaseGameStorageId = (byte)StorageId.NandSystem,
  20. UpdateGameStorageId = (byte)StorageId.None
  21. };
  22. }
  23. }
  24. public static ApplicationLaunchProperty GetByPid(ServiceCtx context)
  25. {
  26. // TODO: Handle ApplicationLaunchProperty as array when pid will be supported and return the right item.
  27. // For now we can hardcode values, and fix it after GetApplicationLaunchProperty is implemented.
  28. return new ApplicationLaunchProperty
  29. {
  30. TitleId = context.Device.System.TitleId,
  31. Version = 0x00,
  32. BaseGameStorageId = (byte)StorageId.NandSystem,
  33. UpdateGameStorageId = (byte)StorageId.None
  34. };
  35. }
  36. }
  37. }