mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Make filters more sensible, reduce allocated items
This change ended up being three-fold: 1. Remove the entirely unused header field filters 2. Move filter running to their appropriate filter classes 3. Separate out DatItem filters into more managable private methods
This commit is contained in:
@@ -187,7 +187,7 @@ namespace SabreTools.DatTools
|
||||
public static bool ApplyFilters(DatFile datFile, Cleaner cleaner, bool perMachine = false, bool throwOnError = false)
|
||||
{
|
||||
// If we have a null cleaner or filters, return false
|
||||
if (cleaner == null || cleaner.DatHeaderFilter == null || cleaner.MachineFilter == null || cleaner.DatItemFilter == null)
|
||||
if (cleaner == null || cleaner.MachineFilter == null || cleaner.DatItemFilter == null)
|
||||
return false;
|
||||
|
||||
// If we're filtering per machine, bucket by machine first
|
||||
|
||||
Reference in New Issue
Block a user