Make FilterRunner more accurate

This commit is contained in:
Matt Nadareski
2023-08-11 22:14:28 -04:00
parent 5583b35111
commit ee97b7ceea
3 changed files with 13 additions and 4 deletions

View File

@@ -45,14 +45,13 @@ namespace SabreTools.Filter
{
Header => MetadataFile.HeaderKey,
Machine => MetadataFile.MachineKey,
DatItem => dictionaryBase.ReadString(DatItem.TypeKey),
DatItem => TypeHelper.GetXmlRootAttributeElementName(dictionaryBase.GetType()),
_ => null,
};
// Loop through and run each filter in order
foreach (var filter in this.Filters)
{
// TODO: Make this step more accurate
// If the filter isn't for this object type, skip
if (filter.Key[0] != itemName)
continue;