mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Empty game names are an issue
This commit is contained in:
@@ -75,11 +75,11 @@ namespace SabreTools.Helper
|
||||
sw.Write((old ? header_old : header));
|
||||
|
||||
// Write out each of the machines and roms
|
||||
string lastgame = "";
|
||||
string lastgame = null;
|
||||
foreach (RomData rom in roms)
|
||||
{
|
||||
string state = "";
|
||||
if (lastgame != "" && lastgame != rom.Game)
|
||||
if (lastgame != null && lastgame != rom.Game)
|
||||
{
|
||||
state += (old ? ")\n" : "\t</machine>\n");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user