Empty game names are an issue

This commit is contained in:
Matt Nadareski
2016-05-08 20:57:14 -07:00
parent e7ede7cca2
commit 010b0a1153

View File

@@ -75,11 +75,11 @@ namespace SabreTools.Helper
sw.Write((old ? header_old : header)); sw.Write((old ? header_old : header));
// Write out each of the machines and roms // Write out each of the machines and roms
string lastgame = ""; string lastgame = null;
foreach (RomData rom in roms) foreach (RomData rom in roms)
{ {
string state = ""; string state = "";
if (lastgame != "" && lastgame != rom.Game) if (lastgame != null && lastgame != rom.Game)
{ {
state += (old ? ")\n" : "\t</machine>\n"); state += (old ? ")\n" : "\t</machine>\n");
} }