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