Skip to content

Commit a2be40f

Browse files
committed
Add CHD version extension
1 parent 771df5c commit a2be40f

File tree

1 file changed

+19
-0
lines changed
  • SabreTools.Serialization/Wrappers

1 file changed

+19
-0
lines changed

SabreTools.Serialization/Wrappers/CHD.cs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,25 @@ public byte[]? SHA1
5252
}
5353
}
5454

55+
/// <summary>
56+
/// CHD version
57+
/// </summary>
58+
public int Version
59+
{
60+
get
61+
{
62+
return Model switch
63+
{
64+
HeaderV1 => 1,
65+
HeaderV2 => 2,
66+
HeaderV3 => 3,
67+
HeaderV4 => 4,
68+
HeaderV5 => 5,
69+
_ => 0,
70+
};
71+
}
72+
}
73+
5574
#endregion
5675

5776
#region Constructors

0 commit comments

Comments
 (0)