[Filter] Get filter ready to be wrapped into DATabase

This commit is contained in:
Matt Nadareski
2016-06-10 02:20:15 -07:00
parent 32367bf39d
commit 83acc50c23
2 changed files with 25 additions and 6 deletions

View File

@@ -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();
}
/// <summary>
/// Wrap filtering a DAT or set of DATs
/// </summary>
/// <param name="inputs">List of inputs to be procesed</param>
/// <param name="outdir">Output directory for new files (optional)</param>
/// <param name="gamename">Name of the game to match (can use asterisk-partials)</param>
/// <param name="romname">Name of the rom to match (can use asterisk-partials)</param>
/// <param name="romtype">Type of the rom to match</param>
/// <param name="sgt">Find roms greater than or equal to this size</param>
/// <param name="slt">Find roms less than or equal to this size</param>
/// <param name="seq">Find roms equal to this size</param>
/// <param name="crc">CRC of the rom to match (can use asterisk-partials)</param>
/// <param name="md5">MD5 of the rom to match (can use asterisk-partials)</param>
/// <param name="sha1">SHA-1 of the rom to match (can use asterisk-partials)</param>
/// <param name="nodump">Select roms with nodump status as follows: null (match all), true (match Nodump only), false (exclude Nodump)</param>
/// <param name="logger">Logging object for file and console output</param>
private static void InitFilter(List<string> 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();
}
/// <summary>

View File

@@ -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