From f4d874f01a40ced668a5329ecf097c0ca3e02b07 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Mon, 9 May 2016 15:16:15 -0700 Subject: [PATCH] ..needs to be after it's used for naming --- DATabaseTwo/DATabaseTwo.cs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/DATabaseTwo/DATabaseTwo.cs b/DATabaseTwo/DATabaseTwo.cs index 81da2b96..78f5be6c 100644 --- a/DATabaseTwo/DATabaseTwo.cs +++ b/DATabaseTwo/DATabaseTwo.cs @@ -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;