[SabreTools, DatFiles/] Add flag for keeping empty games instead of making it default

This commit is contained in:
Matt Nadareski
2018-02-14 12:09:18 -08:00
parent aad04c42ac
commit a8460d6ff8
11 changed files with 104 additions and 38 deletions

View File

@@ -231,17 +231,19 @@ namespace SabreTools.Library.DatFiles
// If no items were found for this machine, add a Blank placeholder
if (!containsItems)
{
Blank blank = new Blank()
if (this.KeepEmptyGames)
{
SystemID = sysid,
System = filename,
SourceID = srcid,
};
Blank blank = new Blank()
{
SystemID = sysid,
System = filename,
SourceID = srcid,
};
blank.CopyMachineInformation(machine);
blank.CopyMachineInformation(machine);
// Now process and add the rom
key = ParseAddHelper(blank, clean, remUnicode);
// Now process and add the rom
ParseAddHelper(blank, clean, remUnicode);
}
}
}