..needs to be after it's used for naming

This commit is contained in:
Matt Nadareski
2016-05-09 15:16:15 -07:00
parent 2d6be19e14
commit f4d874f01a

View File

@@ -455,12 +455,6 @@ Make a selection:
continue;
}
// If a game has source "0" it's Default. Make this Int32.MaxValue for sorting purposes
if (rom.SourceID == 0)
{
rom.SourceID = Int32.MaxValue;
}
// WOD origninally stripped out any subdirs from the imported files, we do the same
rom.Name = Path.GetFileName(rom.Name);
@@ -485,6 +479,13 @@ Make a selection:
{
rom.Game += " [" + sources[rom.SourceID] + "]";
}
// If a game has source "0" it's Default. Make this Int32.MaxValue for sorting purposes
if (rom.SourceID == 0)
{
rom.SourceID = Int32.MaxValue;
}
temp.Add(rom);
}
roms[key] = temp;