[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

@@ -462,11 +462,18 @@ namespace SabreTools.Library.DatFiles
break;
default:
// By default, create a new Blank, just in case
datItem = new Blank();
if (this.KeepEmptyGames)
{
datItem = new Blank();
}
else
{
datItem = null;
}
break;
}
datItem.CopyMachineInformation(dir);
datItem?.CopyMachineInformation(dir);
// Now process and add the rom
key = ParseAddHelper(datItem, clean, remUnicode);