diff --git a/Filter/Filter.cs b/Filter/Filter.cs
index 9e749881..7814566d 100644
--- a/Filter/Filter.cs
+++ b/Filter/Filter.cs
@@ -187,6 +187,31 @@ namespace SabreTools
}
}
+ // Run the filter
+ InitFilter(inputs, outdir, gamename, romname, romtype, sgt, slt, seq, crc, md5, sha1, nodump, logger);
+
+ logger.Close();
+ }
+
+ ///
+ /// Wrap filtering a DAT or set of DATs
+ ///
+ /// List of inputs to be procesed
+ /// Output directory for new files (optional)
+ /// Name of the game to match (can use asterisk-partials)
+ /// Name of the rom to match (can use asterisk-partials)
+ /// Type of the rom to match
+ /// Find roms greater than or equal to this size
+ /// Find roms less than or equal to this size
+ /// Find roms equal to this size
+ /// CRC of the rom to match (can use asterisk-partials)
+ /// MD5 of the rom to match (can use asterisk-partials)
+ /// SHA-1 of the rom to match (can use asterisk-partials)
+ /// Select roms with nodump status as follows: null (match all), true (match Nodump only), false (exclude Nodump)
+ /// Logging object for file and console output
+ private static void InitFilter(List inputs, string outdir, string gamename, string romname, string romtype, long sgt,
+ long slt, long seq, string crc, string md5, string sha1, bool? nodump, Logger logger)
+ {
// Create new Filter objects for each input
Filter filter;
bool success = true;
@@ -221,8 +246,6 @@ namespace SabreTools
Console.WriteLine();
Build.Help();
}
-
- logger.Close();
}
///
diff --git a/SabreTools.sln b/SabreTools.sln
index eb7d263d..635c559d 100644
--- a/SabreTools.sln
+++ b/SabreTools.sln
@@ -43,13 +43,9 @@ Global
{66339C8A-F331-467C-B311-08A8F7284671}.Release|x64.ActiveCfg = Release|x64
{66339C8A-F331-467C-B311-08A8F7284671}.Release|x64.Build.0 = Release|x64
{7DC54E53-4A46-4323-97E1-062EEFB7E4BC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {7DC54E53-4A46-4323-97E1-062EEFB7E4BC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7DC54E53-4A46-4323-97E1-062EEFB7E4BC}.Debug|x64.ActiveCfg = Debug|x64
- {7DC54E53-4A46-4323-97E1-062EEFB7E4BC}.Debug|x64.Build.0 = Debug|x64
{7DC54E53-4A46-4323-97E1-062EEFB7E4BC}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {7DC54E53-4A46-4323-97E1-062EEFB7E4BC}.Release|Any CPU.Build.0 = Release|Any CPU
{7DC54E53-4A46-4323-97E1-062EEFB7E4BC}.Release|x64.ActiveCfg = Release|x64
- {7DC54E53-4A46-4323-97E1-062EEFB7E4BC}.Release|x64.Build.0 = Release|x64
{225A1AFD-0890-44E8-B779-7502665C23A5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{225A1AFD-0890-44E8-B779-7502665C23A5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{225A1AFD-0890-44E8-B779-7502665C23A5}.Debug|x64.ActiveCfg = Debug|x64