Add support for inverted CRC flag

This commit is contained in:
Matt Nadareski
2020-07-28 17:00:19 -07:00
parent 1f25dc4bac
commit e23596983a
9 changed files with 70 additions and 2 deletions

View File

@@ -80,7 +80,8 @@ namespace SabreTools.Library.DatFiles
bool? def = null,
writable = null,
optional = null;
optional = null,
inverted = null;
string name = null,
partName = null,
partInterface = null,
@@ -410,6 +411,10 @@ namespace SabreTools.Library.DatFiles
offset = string.IsNullOrWhiteSpace(value) ? offset : value;
break;
case "DatItem.Inverted":
offset = string.IsNullOrWhiteSpace(value) ? inverted : value;
break;
#endregion
case "INVALID":
@@ -544,6 +549,7 @@ namespace SabreTools.Library.DatFiles
Date = date,
ItemStatus = status,
Optional = optional,
Inverted = inverted,
IndexId = indexId,
IndexSource = filename,
@@ -844,6 +850,9 @@ namespace SabreTools.Library.DatFiles
case "offset":
return "DatItem.Offset";
case "inverted":
return "DatItem.Inverted";
#endregion
default: