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

@@ -182,6 +182,8 @@ namespace SabreTools.Library.Tools
return Field.Index;
case "infos":
return Field.Infos;
case "inverted":
return Field.Inverted;
case "itemname":
case "item-name":
case "name":
@@ -561,8 +563,10 @@ namespace SabreTools.Library.Tools
switch (yesno?.ToLowerInvariant())
{
case "yes":
case "true":
return true;
case "no":
case "false":
return false;
case "partial":
default:
@@ -572,7 +576,9 @@ namespace SabreTools.Library.Tools
return yesno?.ToLowerInvariant() switch
{
"yes" => true,
"true" => true,
"no" => false,
"false" => false,
"partial" => null,
_ => null,
};