This commit is contained in:
Matt Nadareski
2020-06-05 22:26:44 -07:00
parent 916d2a3b51
commit ac2a9fabb7
37 changed files with 722 additions and 269 deletions

View File

@@ -48,6 +48,11 @@ namespace SabreTools.Library.DatFiles
/// </summary>
public FilterItem<string> MD5 { get; set; } = new FilterItem<string>();
/// <summary>
/// Include or exclude RIPEMD160 hashes
/// </summary>
public FilterItem<string> RIPEMD160 { get; set; } = new FilterItem<string>();
/// <summary>
/// Include or exclude SHA-1 hashes
/// </summary>
@@ -224,6 +229,12 @@ namespace SabreTools.Library.DatFiles
if (this.MD5.MatchesNegativeSet(rom.MD5) == true)
return false;
// Filter on RIPEMD160
if (this.RIPEMD160.MatchesPositiveSet(rom.RIPEMD160) == false)
return false;
if (this.RIPEMD160.MatchesNegativeSet(rom.RIPEMD160) == true)
return false;
// Filter on SHA-1
if (this.SHA1.MatchesPositiveSet(rom.SHA1) == false)
return false;
@@ -264,6 +275,12 @@ namespace SabreTools.Library.DatFiles
if (this.MD5.MatchesNegativeSet(rom.MD5) == true)
return false;
// Filter on RIPEMD160
if (this.RIPEMD160.MatchesPositiveSet(rom.RIPEMD160) == false)
return false;
if (this.RIPEMD160.MatchesNegativeSet(rom.RIPEMD160) == true)
return false;
// Filter on SHA-1
if (this.SHA1.MatchesPositiveSet(rom.SHA1) == false)
return false;