mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Fix comapring game name against wrong string
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user