From d8523e30d16989f49d4e1daa46697d4fcadcff86 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Thu, 16 Jun 2016 11:02:33 -0700 Subject: [PATCH] [SimpleSort] Add more framework for inplace --- SimpleSort/SimpleSort.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/SimpleSort/SimpleSort.cs b/SimpleSort/SimpleSort.cs index c4d5c2bf..44ed3c0a 100644 --- a/SimpleSort/SimpleSort.cs +++ b/SimpleSort/SimpleSort.cs @@ -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 fromDat = sortedByGame[Path.GetFileNameWithoutExtension(archive)]; + List toRemove = new List(); + 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 + { + + } + } } }