mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Case is a problem sometimes.
This commit is contained in:
@@ -172,7 +172,7 @@ namespace SabreTools.Helper
|
|||||||
foreach (RomData rom in newroms)
|
foreach (RomData rom in newroms)
|
||||||
{
|
{
|
||||||
count++;
|
count++;
|
||||||
string key = (norename ? "" : rom.SystemID + "-" + rom.SourceID + "-") + rom.Game; // + "-" + rom.Name;
|
string key = (norename ? "" : rom.SystemID + "-" + rom.SourceID + "-") + rom.Game.ToLowerInvariant();
|
||||||
if (sortable.ContainsKey(key))
|
if (sortable.ContainsKey(key))
|
||||||
{
|
{
|
||||||
sortable[key].Add(rom);
|
sortable[key].Add(rom);
|
||||||
@@ -242,12 +242,12 @@ namespace SabreTools.Helper
|
|||||||
foreach (RomData rom in roms)
|
foreach (RomData rom in roms)
|
||||||
{
|
{
|
||||||
string state = "";
|
string state = "";
|
||||||
if (lastgame != null && lastgame != rom.Game)
|
if (lastgame != null && lastgame.ToLowerInvariant() != rom.Game.ToLowerInvariant())
|
||||||
{
|
{
|
||||||
state += (old ? ")\n" : "\t</machine>\n");
|
state += (old ? ")\n" : "\t</machine>\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (lastgame != rom.Game)
|
if (lastgame.ToLowerInvariant() != rom.Game.ToLowerInvariant())
|
||||||
{
|
{
|
||||||
state += (old ? "game (\n\tname \"" + rom.Game + "\"\n" +
|
state += (old ? "game (\n\tname \"" + rom.Game + "\"\n" +
|
||||||
"\tdescription \"" + rom.Game + "\"\n" :
|
"\tdescription \"" + rom.Game + "\"\n" :
|
||||||
|
|||||||
Reference in New Issue
Block a user