Update SoftwareList with new fields

This commit is contained in:
Matt Nadareski
2022-11-03 11:44:29 -07:00
parent b0dba93134
commit 7e3c04e8a2
6 changed files with 26 additions and 2 deletions

View File

@@ -14,6 +14,13 @@ namespace SabreTools.DatItems.Formats
{
#region Fields
/// <summary>
/// Tag for the software list
/// </summary>
[JsonProperty("tag", DefaultValueHandling = DefaultValueHandling.Ignore)]
[XmlElement("tag")]
public string Tag { get; set; }
/// <summary>
/// Name of the item
/// </summary>
@@ -77,6 +84,7 @@ namespace SabreTools.DatItems.Formats
Source = this.Source.Clone() as Source,
Remove = this.Remove,
Tag = this.Tag,
Name = this.Name,
Status = this.Status,
Filter = this.Filter,
@@ -97,7 +105,8 @@ namespace SabreTools.DatItems.Formats
SoftwareList newOther = other as SoftwareList;
// If the SoftwareList information matches
return (Name == newOther.Name
return (Tag == newOther.Tag
&& Name == newOther.Name
&& Status == newOther.Status
&& Filter == newOther.Filter);
}