From b0f616a997428c3b487460a24022de111c55ef3a Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Mon, 13 Jan 2025 15:46:06 -0500 Subject: [PATCH] Remove now-unnecessary flag --- SabreTools.DatFiles/DatFile.Splitting.cs | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/SabreTools.DatFiles/DatFile.Splitting.cs b/SabreTools.DatFiles/DatFile.Splitting.cs index 8862e30a..8fe48a8d 100644 --- a/SabreTools.DatFiles/DatFile.Splitting.cs +++ b/SabreTools.DatFiles/DatFile.Splitting.cs @@ -211,11 +211,8 @@ namespace SabreTools.DatFiles /// Assumes items are bucketed by internal void RemoveItemsFromRomOfChild() { - // TODO: Figure out why the bios flag is needed - RemoveItemsFromRomOfChildImpl(false); - RemoveItemsFromRomOfChildImplDB(false); - RemoveItemsFromRomOfChildImpl(true); - RemoveItemsFromRomOfChildImplDB(true); + RemoveItemsFromRomOfChildImpl(); + RemoveItemsFromRomOfChildImplDB(); } /// @@ -1192,14 +1189,13 @@ namespace SabreTools.DatFiles } /// - /// Use romof tags to remove bios items from children + /// Use romof tags to remove items from children /// - /// True if only child Bios sets are touched, false for non-bios sets /// /// Applies to . /// Assumes items are bucketed by . /// - private void RemoveItemsFromRomOfChildImpl(bool bios) + private void RemoveItemsFromRomOfChildImpl() { // Loop through the romof tags List buckets = [.. Items.Keys]; @@ -1217,10 +1213,6 @@ namespace SabreTools.DatFiles if (machine == null) continue; - // If the game (is/is not) a bios, we want to continue - if (bios ^ (machine.GetBoolFieldValue(Models.Metadata.Machine.IsBiosKey) == true)) - continue; - // Get the romof parent items string? romOf = machine.GetStringFieldValue(Models.Metadata.Machine.RomOfKey); List parentItems = GetItemsForBucket(romOf); @@ -1247,7 +1239,7 @@ namespace SabreTools.DatFiles /// Applies to . /// Assumes items are bucketed by . /// - private void RemoveItemsFromRomOfChildImplDB(bool bios) + private void RemoveItemsFromRomOfChildImplDB() { // Loop through the romof tags List buckets = [.. ItemsDB.SortedKeys]; @@ -1263,10 +1255,6 @@ namespace SabreTools.DatFiles if (machine.Value == null) continue; - // If the game (is/is not) a bios, we want to continue - if (bios ^ (machine.Value.GetBoolFieldValue(Models.Metadata.Machine.IsBiosKey) == true)) - continue; - // Get the romof parent items string? romOf = machine.Value.GetStringFieldValue(Models.Metadata.Machine.RomOfKey); Dictionary parentItems = GetItemsForBucketDB(romOf);