[DatFile] Fix sorting issue

This commit is contained in:
Matt Nadareski
2017-09-25 12:55:38 -07:00
parent 260a6c5851
commit 7797b668ee

View File

@@ -52,10 +52,10 @@ namespace SabreTools.Library.Dats
Globals.Logger.User("Organizing roms by {0}" + (deduperoms != DedupeType.None ? " and merging" : ""), bucketBy); Globals.Logger.User("Organizing roms by {0}" + (deduperoms != DedupeType.None ? " and merging" : ""), bucketBy);
// First do the initial sort of all of the roms // First do the initial sort of all of the roms
List<string> keys = Keys.ToList(); List<string> keys = sortable.Keys.ToList();
Parallel.ForEach(keys, Globals.ParallelOptions, key => Parallel.ForEach(keys, Globals.ParallelOptions, key =>
{ {
List<DatItem> roms = this[key]; List<DatItem> roms = sortable[key];
// Now add each of the roms to their respective games // Now add each of the roms to their respective games
foreach (DatItem rom in roms) foreach (DatItem rom in roms)