From 97513840e0e69bc5d3d6acd86366d7b52a0b7773 Mon Sep 17 00:00:00 2001 From: Deterous <138427222+Deterous@users.noreply.github.com> Date: Mon, 23 Oct 2023 11:53:34 +1300 Subject: [PATCH 1/3] ID and UID are the same Property --- IRD/File.cs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/IRD/File.cs b/IRD/File.cs index 733a0d7..a72e5dc 100644 --- a/IRD/File.cs +++ b/IRD/File.cs @@ -50,12 +50,6 @@ namespace SabreTools.Models.IRD /// 5 bytes, ASCII public string AppVersion { get; set; } - /// - /// ID - /// - /// Version 7 - public uint ID { get; set; } - /// /// Length of the gzip-compressed header data /// @@ -142,4 +136,4 @@ namespace SabreTools.Models.IRD /// public uint CRC { get; set; } } -} \ No newline at end of file +} From 835fce78761a67b3d875a45234587a2e9a6ed31e Mon Sep 17 00:00:00 2001 From: Deterous <138427222+Deterous@users.noreply.github.com> Date: Mon, 23 Oct 2023 12:00:05 +1300 Subject: [PATCH 2/3] Comment on UID --- IRD/File.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/IRD/File.cs b/IRD/File.cs index a72e5dc..766e83b 100644 --- a/IRD/File.cs +++ b/IRD/File.cs @@ -127,8 +127,9 @@ namespace SabreTools.Models.IRD public byte[] PIC { get; set; } /// - /// UID + /// Unique Identifier /// + /// Not present on version 6 and prior, after AppVersion on version 7 public uint UID { get; set; } /// From d445f02ba6dc038ad2a68a30100e9575a72de5b7 Mon Sep 17 00:00:00 2001 From: Deterous <138427222+Deterous@users.noreply.github.com> Date: Mon, 23 Oct 2023 12:23:55 +1300 Subject: [PATCH 3/3] Specify the reserved attributes --- IRD/File.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/IRD/File.cs b/IRD/File.cs index 766e83b..bc9e43d 100644 --- a/IRD/File.cs +++ b/IRD/File.cs @@ -99,14 +99,14 @@ namespace SabreTools.Models.IRD public byte[][] FileHashes { get; set; } /// - /// Future development, must be 0x0000 + /// Extra Config, usually 0x0000 /// - public ushort ExtraAttribute1 { get; set; } + public ushort ExtraConfig { get; set; } /// - /// Future development, must be 0x0000 + /// Attachments, usually 0x0000 /// - public ushort ExtraAttribute2 { get; set; } + public ushort Attachments { get; set; } /// /// D1 key