mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[SabreTools, DatFile, DatHeader] StripHash no longer needed
This commit is contained in:
@@ -884,7 +884,7 @@ namespace SabreTools
|
||||
FeatureType.Flag,
|
||||
longDescription: "By default, all available hashes will be written out to the DAT. This will remove all MD5 hashes from the output file(s).");
|
||||
}
|
||||
}
|
||||
} // TODO: Remove
|
||||
private static Feature _removeSha1Flag
|
||||
{
|
||||
get
|
||||
@@ -896,7 +896,7 @@ namespace SabreTools
|
||||
FeatureType.Flag,
|
||||
longDescription: "By default, all available hashes will be written out to the DAT. This will remove all SHA-1 hashes from the output file(s).");
|
||||
}
|
||||
}
|
||||
} // TODO: Remove
|
||||
private static Feature _removeSha256Flag
|
||||
{
|
||||
get
|
||||
@@ -908,7 +908,7 @@ namespace SabreTools
|
||||
FeatureType.Flag,
|
||||
longDescription: "By default, all available hashes will be written out to the DAT. This will remove all SHA-256 hashes from the output file(s).");
|
||||
}
|
||||
}
|
||||
} // TODO: Remove
|
||||
private static Feature _removeSha384Flag
|
||||
{
|
||||
get
|
||||
@@ -920,7 +920,7 @@ namespace SabreTools
|
||||
FeatureType.Flag,
|
||||
longDescription: "By default, all available hashes will be written out to the DAT. This will remove all SHA-384 hashes from the output file(s).");
|
||||
}
|
||||
}
|
||||
} // TODO: Remove
|
||||
private static Feature _removeSha512Flag
|
||||
{
|
||||
get
|
||||
@@ -932,7 +932,7 @@ namespace SabreTools
|
||||
FeatureType.Flag,
|
||||
longDescription: "By default, all available hashes will be written out to the DAT. This will remove all SHA-512 hashes from the output file(s).");
|
||||
}
|
||||
}
|
||||
} // TODO: Remove
|
||||
private static Feature _removeUnicodeFlag
|
||||
{
|
||||
get
|
||||
|
||||
@@ -454,23 +454,18 @@ namespace SabreTools
|
||||
datHeader.RemoveExtension = true;
|
||||
break;
|
||||
case "remove-md5":
|
||||
datHeader.StripHash |= Hash.MD5;
|
||||
datHeader.ExcludeFields[(int)Field.MD5] = true;
|
||||
break;
|
||||
case "remove-sha1":
|
||||
datHeader.StripHash |= Hash.SHA1;
|
||||
datHeader.ExcludeFields[(int)Field.SHA1] = true;
|
||||
break;
|
||||
case "remove-sha256":
|
||||
datHeader.StripHash |= Hash.SHA256;
|
||||
datHeader.ExcludeFields[(int)Field.SHA256] = true;
|
||||
break;
|
||||
case "remove-sha384":
|
||||
datHeader.StripHash |= Hash.SHA384;
|
||||
datHeader.ExcludeFields[(int)Field.SHA384] = true;
|
||||
break;
|
||||
case "remove-sha512":
|
||||
datHeader.StripHash |= Hash.SHA512;
|
||||
datHeader.ExcludeFields[(int)Field.SHA512] = true;
|
||||
break;
|
||||
case "remove-unicode":
|
||||
|
||||
Reference in New Issue
Block a user