[ALL] ExcludeFields instead of ExcludeOf

This commit is contained in:
Matt Nadareski
2018-03-22 16:09:18 -07:00
parent 1347d0b98e
commit 643b85cf5d
18 changed files with 316 additions and 310 deletions

View File

@@ -162,19 +162,19 @@ namespace SabreTools.Library.DatFiles
// If we're in Romba mode, the state is consistent
if (Romba)
{
state += rom.Name + "\n";
state += (!ExcludeFields[(int)Field.Name] ? rom.Name : "") + "\n";
}
// Otherwise, use any flags
else
{
if (!UseRomName && rom.MachineName != lastgame)
{
state += rom.Name + "\n";
state += (!ExcludeFields[(int)Field.Name] ? rom.Name : "") + "\n";
lastgame = rom.MachineName;
}
else if (UseRomName)
{
state += rom.Name + "\n";
state += (!ExcludeFields[(int)Field.Name] ? rom.Name : "") + "\n";
}
}