mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Remover code to own class
This was the last of the major bits of code that was technically distinct from Cleaning. This means that each of the bits of functionality that used to all be in Cleaner are split out into their approrpriate classes.
This commit is contained in:
@@ -56,15 +56,15 @@ namespace RombaSharp.Features
|
||||
datfile.Header.Name = string.IsNullOrWhiteSpace(name) ? "untitled" : name;
|
||||
datfile.Header.Description = description;
|
||||
DatFromDir.PopulateFromDir(datfile, source, asFiles: TreatAsFile.NonArchive);
|
||||
Cleaner cleaner = new Cleaner();
|
||||
cleaner.PopulateExclusionsFromList(new List<string>
|
||||
Remover remover = new Remover();
|
||||
remover.PopulateExclusionsFromList(new List<string>
|
||||
{
|
||||
"DatItem.SHA256",
|
||||
"DatItem.SHA384",
|
||||
"DatItem.SHA512",
|
||||
"DatItem.SpamSum",
|
||||
});
|
||||
cleaner.ApplyCleaning(datfile);
|
||||
remover.ApplyRemovals(datfile);
|
||||
Writer.Write(datfile, outdat);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user