From a7ce3043d0a8d678d4f0851b1eecd43b86be63d4 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Fri, 10 Jun 2016 02:21:25 -0700 Subject: [PATCH] [Filter] Rearrange methods to make integration easier --- Filter/Filter.cs | 68 ++++++++++++++++++++++++------------------------ 1 file changed, 34 insertions(+), 34 deletions(-) diff --git a/Filter/Filter.cs b/Filter/Filter.cs index 7814566d..ad0d7ab8 100644 --- a/Filter/Filter.cs +++ b/Filter/Filter.cs @@ -24,40 +24,6 @@ namespace SabreTools private bool? _nodump; private Logger _logger; - /// - /// Create a Filter object - /// - /// Name of the file to be parsed - /// Output directory to write the file to - /// 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 - public Filter(string filename, string outdir, string gamename, string romname, string romtype, - long sgt, long slt, long seq, string crc, string md5, string sha1, bool? nodump, Logger logger) - { - _filename = filename; - _outdir = (outdir == "" ? Path.GetDirectoryName(_filename) : outdir); - _gamename = gamename; - _romname = romname; - _romtype = romtype; - _sgt = sgt; - _slt = slt; - _seq = seq; - _crc = crc; - _md5 = md5; - _sha1 = sha1; - _nodump = nodump; - _logger = logger; - } - /// /// Start help or use supplied parameters /// @@ -248,6 +214,40 @@ namespace SabreTools } } + /// + /// Create a Filter object + /// + /// Name of the file to be parsed + /// Output directory to write the file to + /// 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 + public Filter(string filename, string outdir, string gamename, string romname, string romtype, + long sgt, long slt, long seq, string crc, string md5, string sha1, bool? nodump, Logger logger) + { + _filename = filename; + _outdir = (outdir == "" ? Path.GetDirectoryName(_filename) : outdir); + _gamename = gamename; + _romname = romname; + _romtype = romtype; + _sgt = sgt; + _slt = slt; + _seq = seq; + _crc = crc; + _md5 = md5; + _sha1 = sha1; + _nodump = nodump; + _logger = logger; + } + /// /// Process an individual DAT with the given information ///