mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Port Remover tests to new project
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user