Port Remover tests to new project

This commit is contained in:
Matt Nadareski
2025-02-19 14:20:05 -05:00
parent 0fe0f0a235
commit e94ac90e73
3 changed files with 46 additions and 45 deletions

View File

@@ -174,6 +174,11 @@ namespace SabreTools.DatTools
for (int j = 0; j < items.Count; j++)
{
// Handle machine removals
var machine = items[j].GetFieldValue<Machine>(DatItem.MachineKey);
RemoveFields(machine);
// Handle item removals
RemoveFields(items[j]);
}
}
@@ -234,11 +239,6 @@ namespace SabreTools.DatTools
#region Common
// Handle Machine fields
var machine = datItem.GetFieldValue<Machine>(DatItem.MachineKey);
if (MachineFieldNames.Count > 0 && machine != null)
RemoveFields(machine);
// If there are no field names, return
if (ItemFieldNames == null || ItemFieldNames.Count == 0)
return;