2023-07-12 10:40:21 -04:00
|
|
|
using System.Xml;
|
|
|
|
|
using System.Xml.Serialization;
|
|
|
|
|
|
|
|
|
|
namespace SabreTools.Models.Logiqx
|
|
|
|
|
{
|
|
|
|
|
[XmlRoot("rom")]
|
2023-07-30 22:59:04 -04:00
|
|
|
public class Rom
|
2023-07-12 10:40:21 -04:00
|
|
|
{
|
|
|
|
|
[XmlAttribute("name")]
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
|
|
|
|
|
[XmlAttribute("size")]
|
2023-07-30 22:59:04 -04:00
|
|
|
public string Size { get; set; }
|
2023-07-12 10:40:21 -04:00
|
|
|
|
|
|
|
|
[XmlAttribute("crc")]
|
|
|
|
|
public string? CRC { get; set; }
|
|
|
|
|
|
|
|
|
|
[XmlAttribute("md5")]
|
|
|
|
|
public string? MD5 { get; set; }
|
|
|
|
|
|
|
|
|
|
[XmlAttribute("sha1")]
|
|
|
|
|
public string? SHA1 { get; set; }
|
|
|
|
|
|
|
|
|
|
[XmlAttribute("merge")]
|
|
|
|
|
public string? Merge { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <remarks>(baddump|nodump|good|verified) "good"</remarks>
|
|
|
|
|
[XmlAttribute("status")]
|
|
|
|
|
public string? Status { get; set; }
|
|
|
|
|
|
|
|
|
|
[XmlAttribute("date")]
|
|
|
|
|
public string? Date { get; set; }
|
|
|
|
|
|
|
|
|
|
#region Hash Extensions
|
|
|
|
|
|
|
|
|
|
/// <remarks>Also in No-Intro spec; Appears after SHA1</remarks>
|
|
|
|
|
[XmlAttribute("sha256")]
|
|
|
|
|
public string? SHA256 { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <remarks>Appears after SHA256</remarks>
|
|
|
|
|
[XmlAttribute("sha384")]
|
|
|
|
|
public string? SHA384 { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <remarks>Appears after SHA384</remarks>
|
|
|
|
|
[XmlAttribute("sha512")]
|
|
|
|
|
public string? SHA512 { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <remarks>Appears after SHA512</remarks>
|
|
|
|
|
[XmlAttribute("spamsum")]
|
|
|
|
|
public string? SpamSum { get; set; }
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region DiscImgeCreator Extensions
|
|
|
|
|
|
|
|
|
|
/// <remarks>Appears after SpamSum</remarks>
|
|
|
|
|
[XmlAttribute("xxh3_64")]
|
|
|
|
|
public string? xxHash364 { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <remarks>Appears after xxHash364</remarks>
|
|
|
|
|
[XmlAttribute("xxh3_128")]
|
|
|
|
|
public string? xxHash3128 { get; set; }
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region No-Intro Extensions
|
|
|
|
|
|
|
|
|
|
/// <remarks>Appears after Status</remarks>
|
|
|
|
|
[XmlAttribute("serial")]
|
|
|
|
|
public string? Serial { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <remarks>Appears after Serial</remarks>
|
|
|
|
|
[XmlAttribute("header")]
|
|
|
|
|
public string? Header { get; set; }
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region RomVault Extensions
|
|
|
|
|
|
|
|
|
|
/// <remarks>Boolean; Appears after Date</remarks>
|
|
|
|
|
[XmlAttribute("inverted")]
|
2023-07-14 00:39:22 -04:00
|
|
|
public string? Inverted { get; set; }
|
2023-07-12 10:40:21 -04:00
|
|
|
|
|
|
|
|
/// <remarks>Boolean; Appears after Inverted</remarks>
|
|
|
|
|
[XmlAttribute("mia")]
|
2023-07-14 00:39:22 -04:00
|
|
|
public string? MIA { get; set; }
|
2023-07-12 10:40:21 -04:00
|
|
|
|
|
|
|
|
#endregion
|
2023-07-30 22:59:04 -04:00
|
|
|
|
|
|
|
|
#region DO NOT USE IN PRODUCTION
|
|
|
|
|
|
|
|
|
|
/// <remarks>Should be empty</remarks>
|
|
|
|
|
[XmlAnyAttribute]
|
|
|
|
|
public XmlAttribute[]? ADDITIONAL_ATTRIBUTES { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <remarks>Should be empty</remarks>
|
|
|
|
|
[XmlAnyElement]
|
|
|
|
|
public object[]? ADDITIONAL_ELEMENTS { get; set; }
|
|
|
|
|
|
|
|
|
|
#endregion
|
2023-07-12 10:40:21 -04:00
|
|
|
}
|
|
|
|
|
}
|