aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.HLE/HOS/Services/Arp/ApplicationLaunchProperty.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Ryujinx.HLE/HOS/Services/Arp/ApplicationLaunchProperty.cs')
-rw-r--r--src/Ryujinx.HLE/HOS/Services/Arp/ApplicationLaunchProperty.cs43
1 files changed, 43 insertions, 0 deletions
diff --git a/src/Ryujinx.HLE/HOS/Services/Arp/ApplicationLaunchProperty.cs b/src/Ryujinx.HLE/HOS/Services/Arp/ApplicationLaunchProperty.cs
new file mode 100644
index 00000000..3e4eca0a
--- /dev/null
+++ b/src/Ryujinx.HLE/HOS/Services/Arp/ApplicationLaunchProperty.cs
@@ -0,0 +1,43 @@
+using LibHac.Ncm;
+
+namespace Ryujinx.HLE.HOS.Services.Arp
+{
+ class ApplicationLaunchProperty
+ {
+ public ulong TitleId;
+ public int Version;
+ public byte BaseGameStorageId;
+ public byte UpdateGameStorageId;
+#pragma warning disable CS0649
+ public short Padding;
+#pragma warning restore CS0649
+
+ public static ApplicationLaunchProperty Default
+ {
+ get
+ {
+ return new ApplicationLaunchProperty
+ {
+ TitleId = 0x00,
+ Version = 0x00,
+ BaseGameStorageId = (byte)StorageId.BuiltInSystem,
+ UpdateGameStorageId = (byte)StorageId.None
+ };
+ }
+ }
+
+ public static ApplicationLaunchProperty GetByPid(ServiceCtx context)
+ {
+ // TODO: Handle ApplicationLaunchProperty as array when pid will be supported and return the right item.
+ // For now we can hardcode values, and fix it after GetApplicationLaunchProperty is implemented.
+
+ return new ApplicationLaunchProperty
+ {
+ TitleId = context.Device.Processes.ActiveApplication.ProgramId,
+ Version = 0x00,
+ BaseGameStorageId = (byte)StorageId.BuiltInSystem,
+ UpdateGameStorageId = (byte)StorageId.None
+ };
+ }
+ }
+} \ No newline at end of file