mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Simplify machine name filter
This commit is contained in:
@@ -573,22 +573,13 @@ namespace SabreTools.Library.DatItems
|
|||||||
#region Common
|
#region Common
|
||||||
|
|
||||||
// Machine_Name
|
// Machine_Name
|
||||||
bool? machineNameFound = filter.Machine_Name.MatchesPositiveSet(Name);
|
bool passes = filter.PassStringFilter(filter.Machine_Name, Name);
|
||||||
if (filter.IncludeOfInGame)
|
if (filter.IncludeOfInGame)
|
||||||
{
|
{
|
||||||
machineNameFound |= (filter.Machine_Name.MatchesPositiveSet(CloneOf) == true);
|
passes |= filter.PassStringFilter(filter.Machine_Name, CloneOf);
|
||||||
machineNameFound |= (filter.Machine_Name.MatchesPositiveSet(RomOf) == true);
|
passes |= filter.PassStringFilter(filter.Machine_Name, RomOf);
|
||||||
}
|
}
|
||||||
if (machineNameFound == false)
|
if (!passes)
|
||||||
return false;
|
|
||||||
|
|
||||||
machineNameFound = filter.Machine_Name.MatchesNegativeSet(Name);
|
|
||||||
if (filter.IncludeOfInGame)
|
|
||||||
{
|
|
||||||
machineNameFound |= (filter.Machine_Name.MatchesNegativeSet(CloneOf) == true);
|
|
||||||
machineNameFound |= (filter.Machine_Name.MatchesNegativeSet(RomOf) == true);
|
|
||||||
}
|
|
||||||
if (machineNameFound == false)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// Machine_Comment
|
// Machine_Comment
|
||||||
|
|||||||
Reference in New Issue
Block a user