From 595ece5006616d953f93c0742f5a662b2d370f64 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Fri, 31 Mar 2017 23:37:14 -0700 Subject: [PATCH] [DatFile] Proper subsets win --- SabreTools.Helper/Dats/Partials/DatFile.Manipulate.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/SabreTools.Helper/Dats/Partials/DatFile.Manipulate.cs b/SabreTools.Helper/Dats/Partials/DatFile.Manipulate.cs index f6854804..dbf09c91 100644 --- a/SabreTools.Helper/Dats/Partials/DatFile.Manipulate.cs +++ b/SabreTools.Helper/Dats/Partials/DatFile.Manipulate.cs @@ -801,11 +801,8 @@ namespace SabreTools.Helper.Dats // Otherwise, if the parent doesn't already contain the non-disk, add it else if (item.Type != ItemType.Disk && !this[parent].Contains(item)) { - // If we already have the same name in the parent set, rename the child - if (this[parent].Select(i => i.Name).Contains(item.Name)) - { - item.Name = item.Machine.Name + "\\" + item.Name; // TODO: Go back to this for all roms in the future - } + // Rename the child so it's in a subfolder + item.Name = item.Machine.Name + "\\" + item.Name; // Update the machine to be the new parent item.Machine = parentMachine;