[SimpleSort] Add more framework for inplace

This commit is contained in:
Matt Nadareski
2016-06-16 11:02:33 -07:00
parent aac8d5a351
commit d8523e30d1

View File

@@ -581,6 +581,21 @@ namespace SabreTools
We have to check if it's an exact duplicate or a hash-duplicate
Which is better: traversing the "should have" list or the "do have" list?
*/
List<RomData> fromDat = sortedByGame[Path.GetFileNameWithoutExtension(archive)];
List<RomData> toRemove = new List<RomData>();
foreach (RomData rom in roms)
{
// If it's not in at all or needs renaming, mark for removal
if (!fromDat.Contains(rom))
{
toRemove.Add(rom);
}
// Otherwise, we leave it be
else
{
}
}
}
}