Rename RemoveTagsFromChild to RemoveMachineRelationshipTags

This commit is contained in:
Matt Nadareski
2025-01-13 09:12:07 -05:00
parent 17446907b0
commit 31aa6a6478
3 changed files with 15 additions and 13 deletions

View File

@@ -46,9 +46,9 @@ namespace SabreTools.DatFiles.Test
#endregion #endregion
#region RemoveTagsFromChild #region RemoveMachineRelationshipTags
// TODO: Implement RemoveTagsFromChild tests // TODO: Implement RemoveMachineRelationshipTags tests
#endregion #endregion
} }

View File

@@ -84,10 +84,10 @@ namespace SabreTools.DatFiles
/// <summary> /// <summary>
/// Remove all romof and cloneof tags from all games /// Remove all romof and cloneof tags from all games
/// </summary> /// </summary>
public void RemoveTagsFromChild() public void RemoveMachineRelationshipTags()
{ {
RemoveTagsFromChildImpl(); RemoveMachineRelationshipTagsImpl();
RemoveTagsFromChildImplDB(); RemoveMachineRelationshipTagsImplDB();
} }
#endregion #endregion
@@ -1128,7 +1128,8 @@ namespace SabreTools.DatFiles
/// <summary> /// <summary>
/// Remove all romof and cloneof tags from all games /// Remove all romof and cloneof tags from all games
/// </summary> /// </summary>
private void RemoveTagsFromChildImpl() /// <remarks>Applies to <see cref="Items"/></remarks>
private void RemoveMachineRelationshipTagsImpl()
{ {
List<string> games = [.. Items.Keys]; List<string> games = [.. Items.Keys];
games.Sort(); games.Sort();
@@ -1157,7 +1158,8 @@ namespace SabreTools.DatFiles
/// <summary> /// <summary>
/// Remove all romof and cloneof tags from all games /// Remove all romof and cloneof tags from all games
/// </summary> /// </summary>
private void RemoveTagsFromChildImplDB() /// <remarks>Applies to <see cref="ItemsDB"/></remarks>
private void RemoveMachineRelationshipTagsImplDB()
{ {
var machines = ItemsDB.GetMachines(); var machines = ItemsDB.GetMachines();
foreach (var machine in machines) foreach (var machine in machines)

View File

@@ -109,7 +109,7 @@ namespace SabreTools.DatTools
while (datFile.AddRomsFromDevices(true, false)) ; while (datFile.AddRomsFromDevices(true, false)) ;
// Then, remove the romof and cloneof tags so it's not picked up by the manager // Then, remove the romof and cloneof tags so it's not picked up by the manager
datFile.RemoveTagsFromChild(); datFile.RemoveMachineRelationshipTags();
} }
/// <summary> /// <summary>
@@ -131,7 +131,7 @@ namespace SabreTools.DatTools
datFile.RemoveBiosRomsFromChild(true); datFile.RemoveBiosRomsFromChild(true);
// Finally, remove the romof and cloneof tags so it's not picked up by the manager // Finally, remove the romof and cloneof tags so it's not picked up by the manager
datFile.RemoveTagsFromChild(); datFile.RemoveMachineRelationshipTags();
} }
/// <summary> /// <summary>
@@ -154,7 +154,7 @@ namespace SabreTools.DatTools
datFile.AddRomsFromBios(); datFile.AddRomsFromBios();
// Then, remove the romof and cloneof tags so it's not picked up by the manager // Then, remove the romof and cloneof tags so it's not picked up by the manager
datFile.RemoveTagsFromChild(); datFile.RemoveMachineRelationshipTags();
} }
/// <summary> /// <summary>
@@ -176,7 +176,7 @@ namespace SabreTools.DatTools
datFile.RemoveBiosRomsFromChild(true); datFile.RemoveBiosRomsFromChild(true);
// Finally, remove the romof and cloneof tags so it's not picked up by the manager // Finally, remove the romof and cloneof tags so it's not picked up by the manager
datFile.RemoveTagsFromChild(); datFile.RemoveMachineRelationshipTags();
} }
/// <summary> /// <summary>
@@ -198,7 +198,7 @@ namespace SabreTools.DatTools
datFile.RemoveBiosRomsFromChild(true); datFile.RemoveBiosRomsFromChild(true);
// Finally, remove the romof and cloneof tags so it's not picked up by the manager // Finally, remove the romof and cloneof tags so it's not picked up by the manager
datFile.RemoveTagsFromChild(); datFile.RemoveMachineRelationshipTags();
} }
/// <summary> /// <summary>
@@ -220,7 +220,7 @@ namespace SabreTools.DatTools
datFile.RemoveBiosRomsFromChild(true); datFile.RemoveBiosRomsFromChild(true);
// Finally, remove the romof and cloneof tags so it's not picked up by the manager // Finally, remove the romof and cloneof tags so it's not picked up by the manager
datFile.RemoveTagsFromChild(); datFile.RemoveMachineRelationshipTags();
} }
#endregion #endregion