From efad6ce9b8f30e3d49d4b7d6d3c63d7929015a9d Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Tue, 19 Mar 2024 22:36:43 -0400 Subject: [PATCH] Ensure IDDB is correctly bucketed for splitting --- SabreTools.Filtering/Splitter.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/SabreTools.Filtering/Splitter.cs b/SabreTools.Filtering/Splitter.cs index 50a8cc6e..56061c19 100644 --- a/SabreTools.Filtering/Splitter.cs +++ b/SabreTools.Filtering/Splitter.cs @@ -103,6 +103,7 @@ namespace SabreTools.Filtering // For sake of ease, the first thing we want to do is bucket by game datFile.Items.BucketBy(ItemKey.Machine, DedupeType.None, norename: true); + datFile.ItemsDB.BucketBy(ItemKey.Machine, DedupeType.None, norename: true); // Now we want to loop through all of the games and set the correct information while (datFile.Items.AddRomsFromDevices(false, false)) ; @@ -125,6 +126,7 @@ namespace SabreTools.Filtering // For sake of ease, the first thing we want to do is bucket by game datFile.Items.BucketBy(ItemKey.Machine, DedupeType.None, norename: true); + datFile.ItemsDB.BucketBy(ItemKey.Machine, DedupeType.None, norename: true); // Now we want to loop through all of the games and set the correct information datFile.Items.AddRomsFromChildren(true, false); @@ -151,6 +153,7 @@ namespace SabreTools.Filtering // For sake of ease, the first thing we want to do is bucket by game datFile.Items.BucketBy(ItemKey.Machine, DedupeType.None, norename: true); + datFile.ItemsDB.BucketBy(ItemKey.Machine, DedupeType.None, norename: true); // Now we want to loop through all of the games and set the correct information while (datFile.Items.AddRomsFromDevices(true, true)) ; @@ -179,6 +182,7 @@ namespace SabreTools.Filtering // For sake of ease, the first thing we want to do is bucket by game datFile.Items.BucketBy(ItemKey.Machine, DedupeType.None, norename: true); + datFile.ItemsDB.BucketBy(ItemKey.Machine, DedupeType.None, norename: true); // Now we want to loop through all of the games and set the correct information datFile.Items.AddRomsFromChildren(true, true); @@ -205,6 +209,7 @@ namespace SabreTools.Filtering // For sake of ease, the first thing we want to do is bucket by game datFile.Items.BucketBy(ItemKey.Machine, DedupeType.None, norename: true); + datFile.ItemsDB.BucketBy(ItemKey.Machine, DedupeType.None, norename: true); // Now we want to loop through all of the games and set the correct information datFile.Items.AddRomsFromParent(); @@ -231,6 +236,7 @@ namespace SabreTools.Filtering // For sake of ease, the first thing we want to do is bucket by game datFile.Items.BucketBy(ItemKey.Machine, DedupeType.None, norename: true); + datFile.ItemsDB.BucketBy(ItemKey.Machine, DedupeType.None, norename: true); // Now we want to loop through all of the games and set the correct information datFile.Items.RemoveRomsFromChild();