Fix comapring game name against wrong string

This commit is contained in:
Matt Nadareski
2016-03-22 15:39:26 -07:00
parent 3c107cd200
commit 175690e2d5

View File

@@ -162,6 +162,11 @@ namespace DATabase
string lastgame = ""; string lastgame = "";
foreach (RomData rom in roms) foreach (RomData rom in roms)
{ {
if (lastgame.Contains("Adventures of Batman"))
{
Console.WriteLine(lastgame + ", " + rom.Game);
}
string state = ""; string state = "";
if (lastgame != "" && lastgame != rom.Game) if (lastgame != "" && lastgame != rom.Game)
{ {
@@ -194,7 +199,7 @@ namespace DATabase
" />\n"; " />\n";
} }
lastgame = HttpUtility.HtmlEncode(rom.Game); lastgame = rom.Game;
sw.Write(state); sw.Write(state);
} }