[Filter] Fix not-game-name flag (fixes #4)

This commit is contained in:
Matt Nadareski
2018-01-17 13:06:21 -08:00
parent d34ad37962
commit 6258fd49df

View File

@@ -639,13 +639,13 @@ namespace SabreTools.Library.DatFiles
} }
if (_notGameNames.Count > 0) if (_notGameNames.Count > 0)
{ {
bool found = FindValueInList(_gameNames, item.MachineName); bool found = FindValueInList(_notGameNames, item.MachineName);
// If we are checking CloneOf and RomOf, add them in as well // If we are checking CloneOf and RomOf, add them in as well
if (_includeOfInGame) if (_includeOfInGame)
{ {
found |= FindValueInList(_gameNames, item.CloneOf); found |= FindValueInList(_notGameNames, item.CloneOf);
found |= FindValueInList(_gameNames, item.RomOf); found |= FindValueInList(_notGameNames, item.RomOf);
} }
// If the game name was found in the list, return false // If the game name was found in the list, return false