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
#region RemoveTagsFromChild
#region RemoveMachineRelationshipTags
// TODO: Implement RemoveTagsFromChild tests
// TODO: Implement RemoveMachineRelationshipTags tests
#endregion
}

View File

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

View File

@@ -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();
}
/// <summary>
@@ -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();
}
/// <summary>
@@ -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();
}
/// <summary>
@@ -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();
}
/// <summary>
@@ -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();
}
/// <summary>
@@ -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