From 31aa6a64787621aa9989dcf3db4acbb38a8a0dc1 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Mon, 13 Jan 2025 09:12:07 -0500 Subject: [PATCH] Rename RemoveTagsFromChild to RemoveMachineRelationshipTags --- SabreTools.DatFiles.Test/DatFileTests.Splitting.cs | 4 ++-- SabreTools.DatFiles/DatFile.Splitting.cs | 12 +++++++----- SabreTools.DatTools/MergeSplit.cs | 12 ++++++------ 3 files changed, 15 insertions(+), 13 deletions(-) diff --git a/SabreTools.DatFiles.Test/DatFileTests.Splitting.cs b/SabreTools.DatFiles.Test/DatFileTests.Splitting.cs index 90559491..fb1f10f8 100644 --- a/SabreTools.DatFiles.Test/DatFileTests.Splitting.cs +++ b/SabreTools.DatFiles.Test/DatFileTests.Splitting.cs @@ -46,9 +46,9 @@ namespace SabreTools.DatFiles.Test #endregion - #region RemoveTagsFromChild + #region RemoveMachineRelationshipTags - // TODO: Implement RemoveTagsFromChild tests + // TODO: Implement RemoveMachineRelationshipTags tests #endregion } diff --git a/SabreTools.DatFiles/DatFile.Splitting.cs b/SabreTools.DatFiles/DatFile.Splitting.cs index 0d39c5ae..733685ba 100644 --- a/SabreTools.DatFiles/DatFile.Splitting.cs +++ b/SabreTools.DatFiles/DatFile.Splitting.cs @@ -84,10 +84,10 @@ namespace SabreTools.DatFiles /// /// Remove all romof and cloneof tags from all games /// - public void RemoveTagsFromChild() + public void RemoveMachineRelationshipTags() { - RemoveTagsFromChildImpl(); - RemoveTagsFromChildImplDB(); + RemoveMachineRelationshipTagsImpl(); + RemoveMachineRelationshipTagsImplDB(); } #endregion @@ -1128,7 +1128,8 @@ namespace SabreTools.DatFiles /// /// Remove all romof and cloneof tags from all games /// - private void RemoveTagsFromChildImpl() + /// Applies to + private void RemoveMachineRelationshipTagsImpl() { List games = [.. Items.Keys]; games.Sort(); @@ -1157,7 +1158,8 @@ namespace SabreTools.DatFiles /// /// Remove all romof and cloneof tags from all games /// - private void RemoveTagsFromChildImplDB() + /// Applies to + private void RemoveMachineRelationshipTagsImplDB() { var machines = ItemsDB.GetMachines(); foreach (var machine in machines) diff --git a/SabreTools.DatTools/MergeSplit.cs b/SabreTools.DatTools/MergeSplit.cs index 836f97cf..11a1d5ad 100644 --- a/SabreTools.DatTools/MergeSplit.cs +++ b/SabreTools.DatTools/MergeSplit.cs @@ -109,7 +109,7 @@ namespace SabreTools.DatTools while (datFile.AddRomsFromDevices(true, false)) ; // Then, remove the romof and cloneof tags so it's not picked up by the manager - datFile.RemoveTagsFromChild(); + datFile.RemoveMachineRelationshipTags(); } /// @@ -131,7 +131,7 @@ namespace SabreTools.DatTools datFile.RemoveBiosRomsFromChild(true); // Finally, remove the romof and cloneof tags so it's not picked up by the manager - datFile.RemoveTagsFromChild(); + datFile.RemoveMachineRelationshipTags(); } /// @@ -154,7 +154,7 @@ namespace SabreTools.DatTools datFile.AddRomsFromBios(); // Then, remove the romof and cloneof tags so it's not picked up by the manager - datFile.RemoveTagsFromChild(); + datFile.RemoveMachineRelationshipTags(); } /// @@ -176,7 +176,7 @@ namespace SabreTools.DatTools datFile.RemoveBiosRomsFromChild(true); // Finally, remove the romof and cloneof tags so it's not picked up by the manager - datFile.RemoveTagsFromChild(); + datFile.RemoveMachineRelationshipTags(); } /// @@ -198,7 +198,7 @@ namespace SabreTools.DatTools datFile.RemoveBiosRomsFromChild(true); // Finally, remove the romof and cloneof tags so it's not picked up by the manager - datFile.RemoveTagsFromChild(); + datFile.RemoveMachineRelationshipTags(); } /// @@ -220,7 +220,7 @@ namespace SabreTools.DatTools datFile.RemoveBiosRomsFromChild(true); // Finally, remove the romof and cloneof tags so it's not picked up by the manager - datFile.RemoveTagsFromChild(); + datFile.RemoveMachineRelationshipTags(); } #endregion