longDescription:"If this flag is set, then blank entries will be created for each of the empty directories in the source. This is useful for tools that require all folders be accounted for in the output DAT.");
}
}
internalconststringAddDateValue="add-date";
internalstaticFeatureAddDateFlag
{
get
{
returnnewFeature(
AddDateValue,
newList<string>(){"-ad","--add-date"},
"Add dates to items, where posible",
FeatureType.Flag,
longDescription:"If this flag is set, then the Date will be appended to each file information in the output DAT. The output format is standardized as \"yyyy/MM/dd HH:mm:ss\".");
longDescription:"Instead of trying to enumerate the files within archives, treat the archives as files themselves. This is good for uncompressed sets that include archives that should be read as-is.");
longDescription:"Add a new column or field for counting the number of baddumps in the DAT.");
}
}
internalconststringBaseValue="base";
internalstaticFeatureBaseFlag
{
get
{
returnnewFeature(
BaseValue,
newList<string>(){"-ba","--base"},
"Use source DAT as base name for outputs",
FeatureType.Flag,
longDescription:"If splitting an entire folder of DATs, some output files may be normally overwritten since the names would be the same. With this flag, the original DAT name is used in the output name, in the format of \"Original Name(Dir - Name)\". This can be used in conjunction with --short to output in the format of \"Original Name (Name)\" instead.");
longDescription:"By default, no item names are changed except when there is a merge occurring. This flag enables users to define a DAT or set of base DATs to use as \"replacements\" for all input DATs. Note that the first found instance of an item in the base DAT(s) will be used and all others will be discarded. If no additional flag is given, it will default to updating names.");
longDescription:"By default, diffing against uses hashes to determine similar files. This flag enables using using each game as a comparision point instead.");
longDescription:"Normally, CHDs would be processed using their internal hash to compare against the input DATs. This flag forces all CHDs to be treated like regular files.");
}
}
internalconststringCleanValue="clean";
internalstaticFeatureCleanFlag
{
get
{
returnnewFeature(
CleanValue,
newList<string>(){"-clean","--clean"},
"Clean game names according to WoD standards",
FeatureType.Flag,
longDescription:"Game names will be sanitized to remove what the original WoD standards deemed as unneeded information, such as parenthesized or bracketed strings.");
}
}
internalconststringCopyFilesValue="copy-files";
internalstaticFeatureCopyFilesFlag
{
get
{
returnnewFeature(
CopyFilesValue,
newList<string>(){"-cf","--copy-files"},
"Copy files to the temp directory before parsing",
FeatureType.Flag,
longDescription:"If this flag is set, then all files that are going to be parsed are moved to the temporary directory before being hashed. This can be helpful in cases where the temp folder is located on an SSD and the user wants to take advantage of this.");
longDescription:"Preprocess the DAT to have child sets contain all items from the device references. This is incompatible with the other --dat-X flags.");
longDescription:"Preprocess the DAT to have child sets contain all items from the parent sets based on the cloneof and romof tags as well as device references. This is incompatible with the other --dat-X flags.");
}
}
internalconststringDatMergedValue="dat-merged";
internalstaticFeatureDatMergedFlag
{
get
{
returnnewFeature(
DatMergedValue,
newList<string>(){"-dm","--dat-merged"},
"Force creating merged sets",
FeatureType.Flag,
longDescription:"Preprocess the DAT to have parent sets contain all items from the children based on the cloneof tag. This is incompatible with the other --dat-X flags.");
longDescription:"Preprocess the DAT to have child sets contain all items from the parent set based on the romof and cloneof tags. This is incompatible with the other --dat-X flags.");
}
}
internalconststringDatSplitValue="dat-split";
internalstaticFeatureDatSplitFlag
{
get
{
returnnewFeature(
DatSplitValue,
newList<string>(){"-ds","--dat-split"},
"Force creating split sets",
FeatureType.Flag,
longDescription:"Preprocess the DAT to remove redundant files between parents and children based on the romof and cloneof tags. This is incompatible with the other --dat-X flags.");
}
}
internalconststringDedupValue="dedup";
internalstaticFeatureDedupFlag
{
get
{
returnnewFeature(
DedupValue,
newList<string>(){"-dd","--dedup"},
"Enable deduping in the created DAT",
FeatureType.Flag,
longDescription:"For all outputted DATs, allow for hash deduping. This makes sure that there are effectively no duplicates in the output files. Cannot be used with game dedup.");
}
}
internalconststringDeleteValue="delete";
internalstaticFeatureDeleteFlag
{
get
{
returnnewFeature(
DeleteValue,
newList<string>(){"-del","--delete"},
"Delete fully rebuilt input files",
FeatureType.Flag,
longDescription:"Optionally, the input files, once processed and fully matched, can be deleted. This can be useful when the original file structure is no longer needed or if there is limited space on the source drive.");
longDescription:"Normally, input directories will be treated with no special format. If this flag is used, all input directories will be assumed to be Romba-style depots.");
longDescription:"By default, Logiqx XML DATs output with the more modern \"machine\" tag for each set. This flag allows users to output the older \"game\" tag instead, for compatibility reasons. [Logiqx only]");
longDescription:"By default, all DATs are converted exactly as they are input. Enabling this flag allows for the machine names in the DAT to be replaced by the machine description instead. In most cases, this will result in no change in the output DAT, but a notable example would be a software list DAT where the machine names are generally DOS-friendly while the description is more complete.");
"This flag will enable a special type of diffing in which a set of base DATs are used as a comparison point for each of the input DATs. This allows users to get a slightly different output to cascaded diffing, which may be more useful in some cases. This is heavily influenced by the diffing model used by Romba.");
}
}
internalconststringDiffAllValue="diff-all";
internalstaticFeatureDiffAllFlag
{
get
{
returnnewFeature(
DiffAllValue,
newList<string>(){"-di","--diff-all"},
"Create diffdats from inputs (all standard outputs)",
FeatureType.Flag,
longDescription:"By default, all DATs are processed individually with the user-specified flags. With this flag enabled, input DATs are diffed against each other to find duplicates, no duplicates, and only in individuals.");
longDescription:"This flag allows for a special type of diffing in which the first DAT is considered a base, and for each additional input DAT, it only leaves the files that are not in one of the previous DATs. This can allow for the creation of rollback sets or even just reduce the amount of duplicates across multiple sets.");
longDescription:"This flag allows for a special type of diffing in which the last DAT is considered a base, and for each additional input DAT, it only leaves the files that are not in one of the previous DATs. This can allow for the creation of rollback sets or even just reduce the amount of duplicates across multiple sets.");
}
}
internalconststringExtensionValue="extension";
internalstaticFeatureExtensionFlag
{
get
{
returnnewFeature(
ExtensionValue,
newList<string>(){"-es","--extension"},
"Split DAT(s) by two file extensions",
FeatureType.Flag,
longDescription:"For a DAT, or set of DATs, allow for splitting based on a list of input extensions. This can allow for combined DAT files, such as those combining two separate systems, to be split. Files with any extensions not listed in the input lists will be included in both outputted DAT files.");
}
}
internalconststringGameDedupValue="game-dedup";
internalstaticFeatureGameDedupFlag
{
get
{
returnnewFeature(
GameDedupValue,
newList<string>(){"-gdd","--game-dedup"},
"Enable deduping within games in the created DAT",
FeatureType.Flag,
longDescription:"For all outputted DATs, allow for hash deduping but only within the games, and not across the entire DAT. This makes sure that there are effectively no duplicates within each of the output sets. Cannot be used with standard dedup.");
}
}
internalconststringGamePrefixValue="game-prefix";
internalstaticFeatureGamePrefixFlag
{
get
{
returnnewFeature(
GamePrefixValue,
newList<string>(){"-gp","--game-prefix"},
"Add game name as a prefix",
FeatureType.Flag,
longDescription:"This flag allows for the name of the game to be used as a prefix to each file.");
}
}
internalconststringHashValue="hash";
internalstaticFeatureHashFlag
{
get
{
returnnewFeature(
HashValue,
newList<string>(){"-hs","--hash"},
"Split DAT(s) or folder by best-available hashes",
FeatureType.Flag,
longDescription:"For a DAT, or set of DATs, allow for splitting based on the best available hash for each file within. The order of preference for the outputted DATs is as follows: Nodump, SHA-512, SHA-384, SHA-256, SHA-1, MD5, CRC (or worse).");
}
}
internalconststringHashOnlyValue="hash-only";
internalstaticFeatureHashOnlyFlag
{
get
{
returnnewFeature(
HashOnlyValue,
newList<string>(){"-ho","--hash-only"},
"Check files by hash only",
FeatureType.Flag,
longDescription:"This sets a mode where files are not checked based on name but rather hash alone. This allows verification of (possibly) incorrectly named folders and sets to be verified without worrying about the proper set structure to be there.");
}
}
internalconststringIndividualValue="individual";
internalstaticFeatureIndividualFlag
{
get
{
returnnewFeature(
IndividualValue,
newList<string>(){"-ind","--individual"},
"Process input DATs individually",
FeatureType.Flag,
longDescription:"In cases where DATs would be processed in bulk, this flag allows them to be processed on their own instead.");
}
}
internalconststringInplaceValue="inplace";
internalstaticFeatureInplaceFlag
{
get
{
returnnewFeature(
InplaceValue,
newList<string>(){"-ip","--inplace"},
"Write to the input directories, where possible",
FeatureType.Flag,
longDescription:"By default, files are written to the runtime directory (or the output directory, if set). This flag enables users to write out to the directory that the DATs originated from.");
}
}
internalconststringInverseValue="inverse";
internalstaticFeatureInverseFlag
{
get
{
returnnewFeature(
InverseValue,
newList<string>(){"-in","--inverse"},
"Rebuild only files not in DAT",
FeatureType.Flag,
longDescription:"Instead of the normal behavior of rebuilding using a DAT, this flag allows the user to use the DAT as a filter instead. All files that are found in the DAT will be skipped and everything else will be output in the selected format.");
longDescription:"Normally, any sets that are considered empty will not be included in the output, this flag allows these empty sets to be added to the output.");
}
}
internalconststringLevelValue="level";
internalstaticFeatureLevelFlag
{
get
{
returnnewFeature(
LevelValue,
newList<string>(){"-ls","--level"},
"Split a SuperDAT or folder by lowest available level",
FeatureType.Flag,
longDescription:"For a DAT, or set of DATs, allow for splitting based on the lowest available level of game name. That is, if a game name is top/mid/last, then it will create an output DAT for the parent directory \"mid\" in a folder called \"top\" with a game called \"last\".");
"Allow cloneof and romof tags to match game name filters",
FeatureType.Flag,
longDescription:"If filter or exclude by game name is used, this flag will allow those filters to be checked against the romof and cloneof tags as well. This can allow for more advanced set-building, especially in arcade-based sets.");
longDescription:"By default, all DATs are processed individually with the user-specified flags. With this flag enabled, all of the input DATs are merged into a single output. This is best used with the dedup flag.");
longDescription:"By default, all headers that are removed from files are backed up in the database. This flag allows users to skip that step entirely, avoiding caching the headers at all.");
longDescription:"This allows users to input a list of regions to use to filter on in order so only one game from each set of parent and clones will be included. This requires either cloneof or romof tags to function properly.");
longDescription:"In some cases, it is beneficial to have every rom put into its own output set as a subfolder of the original parent. This flag enables outputting each rom to its own game for this purpose.");
}
}
internalconststringOnlySameValue="only-same";
internalstaticFeatureOnlySameFlag
{
get
{
returnnewFeature(
OnlySameValue,
newList<string>(){"-ons","--only-same"},
"Only update description if machine name matches description",
FeatureType.Flag,
longDescription:"Normally, updating the description will always overwrite if the machine names are the same. With this flag, descriptions will only be overwritten if they are the same as the machine names.");
}
}
internalconststringQuickValue="quick";
internalstaticFeatureQuickFlag
{
get
{
returnnewFeature(
QuickValue,
newList<string>(){"-qs","--quick"},
"Enable quick scanning of archives",
FeatureType.Flag,
longDescription:"For all archives, if this flag is enabled, it will only use the header information to get the archive entries' file information. The upside to this is that it is the fastest option. On the downside, it can only get the CRC and size from most archive formats, leading to possible issues.");
}
}
internalconststringQuotesValue="quotes";
internalstaticFeatureQuotesFlag
{
get
{
returnnewFeature(
QuotesValue,
newList<string>(){"-q","--quotes"},
"Double-quote each item",
FeatureType.Flag,
longDescription:"This flag surrounds the item by double-quotes, not including the prefix or postfix.");
longDescription:"By default, the character set from the original file(s) will be used for item naming. This flag removes all Unicode characters from the item names, machine names, and machine descriptions.");
longDescription:"By default, no item names are changed except when there is a merge occurring. This flag enables users to define a DAT or set of base DATs to use as \"replacements\" for all input DATs. Note that the first found instance of an item in the last base DAT(s) will be used and all others will be discarded. If no additional flag is given, it will default to updating names.");
}
}
internalconststringRombaValue="romba";
internalstaticFeatureRombaFlag
{
get
{
returnnewFeature(
RombaValue,
newList<string>(){"-ro","--romba"},
"Treat like a Romba depot (requires SHA-1)",
FeatureType.Flag,
longDescription:"This flag allows reading and writing of DATs and output files to and from a Romba-style depot. This also implies TorrentGZ input and output for physical files. Where appropriate, Romba depot files will be created as well.");
}
}
internalconststringRomsValue="roms";
internalstaticFeatureRomsFlag
{
get
{
returnnewFeature(
RomsValue,
newList<string>(){"-r","--roms"},
"Output roms to miss instead of sets",
FeatureType.Flag,
longDescription:"By default, the outputted file will include the name of the game so this flag allows for the name of the rom to be output instead. [Missfile only]");
}
}
internalconststringRunnableValue="runnable";
internalstaticFeatureRunnableFlag
{
get
{
returnnewFeature(
RunnableValue,
newList<string>(){"-run","--runnable"},
"Include only items that are marked runnable",
FeatureType.Flag,
longDescription:"This allows users to include only verified runnable games.");
longDescription:"If this flag is enabled, sets with \"scene\" names will have the date removed from the beginning. For example \"01.01.01-Game_Name-GROUP\" would become \"Game_Name-Group\".");
}
}
internalconststringShortValue="short";
internalstaticFeatureShortFlag
{
get
{
returnnewFeature(
ShortValue,
newList<string>(){"-s","--short"},
"Use short output names",
FeatureType.Flag,
longDescription:"Instead of using ClrMamePro-style long names for DATs, use just the name of the folder as the name of the DAT. This can be used in conjunction with --base to output in the format of \"Original Name (Name)\" instead.");
}
}
internalconststringSingleSetValue="single-set";
internalstaticFeatureSingleSetFlag
{
get
{
returnnewFeature(
SingleSetValue,
newList<string>(){"-si","--single-set"},
"All game names replaced by '!'",
FeatureType.Flag,
longDescription:"This is useful for keeping all roms in a DAT in the same archive or folder.");
}
}
internalconststringSizeValue="size";
internalstaticFeatureSizeFlag
{
get
{
returnnewFeature(
SizeValue,
newList<string>(){"-szs","--size"},
"Split DAT(s) or folder by file sizes",
FeatureType.Flag,
longDescription:"For a DAT, or set of DATs, allow for splitting based on the sizes of the files, specifically if the type is a Rom (most item types don't have sizes).");
longDescription:"In times where the first DAT does not need to be written out a second time, this will skip writing it. This can often speed up the output process.");
}
}
internalconststringSkipMd5Value="skip-md5";
internalstaticFeatureSkipMd5Flag
{
get
{
returnnewFeature(
SkipMd5Value,
newList<string>(){"-nm","--skip-md5"},
"Don't include MD5 in output",
FeatureType.Flag,
longDescription:"This allows the user to skip calculating the MD5 for each of the files which will speed up the creation of the DAT.");
"Include RIPEMD160 in output",// TODO: This needs to be inverted later
FeatureType.Flag,
longDescription:"This allows the user to skip calculating the RIPEMD160 for each of the files which will speed up the creation of the DAT.");
}
}
#endif
internalconststringSkipSha1Value="skip-sha1";
internalstaticFeatureSkipSha1Flag
{
get
{
returnnewFeature(
SkipSha1Value,
newList<string>(){"-ns","--skip-sha1"},
"Don't include SHA-1 in output",
FeatureType.Flag,
longDescription:"This allows the user to skip calculating the SHA-1 for each of the files which will speed up the creation of the DAT.");
}
}
internalconststringSkipSha256Value="skip-sha256";
internalstaticFeatureSkipSha256Flag
{
get
{
returnnewFeature(
SkipSha256Value,
newList<string>(){"-ns256","--skip-sha256"},
"Include SHA-256 in output",// TODO: This needs to be inverted later
FeatureType.Flag,
longDescription:"This allows the user to skip calculating the SHA-256 for each of the files which will speed up the creation of the DAT.");
}
}
internalconststringSkipSha384Value="skip-sha384";
internalstaticFeatureSkipSha384Flag
{
get
{
returnnewFeature(
SkipSha384Value,
newList<string>(){"-ns384","--skip-sha384"},
"Include SHA-384 in output",// TODO: This needs to be inverted later
FeatureType.Flag,
longDescription:"This allows the user to skip calculating the SHA-384 for each of the files which will speed up the creation of the DAT.");
}
}
internalconststringSkipSha512Value="skip-sha512";
internalstaticFeatureSkipSha512Flag
{
get
{
returnnewFeature(
SkipSha512Value,
newList<string>(){"-ns512","--skip-sha512"},
"Include SHA-512 in output",// TODO: This needs to be inverted later
FeatureType.Flag,
longDescription:"This allows the user to skip calculating the SHA-512 for each of the files which will speed up the creation of the DAT.");
}
}
internalconststringSuperdatValue="superdat";
internalstaticFeatureSuperdatFlag
{
get
{
returnnewFeature(
SuperdatValue,
newList<string>(){"-sd","--superdat"},
"Enable SuperDAT creation",
FeatureType.Flag,
longDescription:"Set the type flag to \"SuperDAT\" for the output DAT as well as preserving the directory structure of the inputted folder, if applicable.");
}
}
internalconststringTarValue="tar";
internalstaticFeatureTarFlag
{
get
{
returnnewFeature(
TarValue,
newList<string>(){"-tar","--tar"},
"Enable Tape ARchive output",
FeatureType.Flag,
longDescription:"Instead of outputting the files to folder, files will be rebuilt to Tape ARchive (TAR) files. This format is a standardized storage archive without any compression, usually used with other compression formats around it. It is widely used in backup applications and source code archives.");
longDescription:"Instead of outputting the files to folder, files will be rebuilt to Torrent7Zip (T7Z) files. This format is based on the LZMA container format 7Zip, but with custom header information. This is currently unused by any major application. Currently does not produce proper Torrent-compatible outputs.");
longDescription:"Instead of outputting the files to folder, files will be rebuilt to TorrentGZ (TGZ) files. This format is based on the GZip archive format, but with custom header information and a file name replaced by the SHA-1 of the file inside. This is primarily used by external tool Romba (https://github.com/uwedeportivo/romba), but may be used more widely in the future.");
}
}
internalconststringTorrentZipValue="torrent-zip";
internalstaticFeatureTorrentZipFlag
{
get
{
returnnewFeature(
TorrentZipValue,
newList<string>(){"-tzip","--torrent-zip"},
"Enable Torrent Zip output",
FeatureType.Flag,
longDescription:"Instead of outputting files to folder, files will be rebuilt to TorrentZip (TZip) files. This format is based on the ZIP archive format, but with custom header information. This is primarily used by external tool RomVault (http://www.romvault.com/) and is already widely used.");
}
}
internalconststringTrimValue="trim";
internalstaticFeatureTrimFlag
{
get
{
returnnewFeature(
TrimValue,
newList<string>(){"-trim","--trim"},
"Trim file names to fit NTFS length",
FeatureType.Flag,
longDescription:"In the cases where files will have too long a name, this allows for trimming the name of the files to the NTFS maximum length at most.");
}
}
internalconststringTypeValue="type";
internalstaticFeatureTypeFlag
{
get
{
returnnewFeature(
TypeValue,
newList<string>(){"-ts","--type"},
"Split DAT(s) or folder by file types (rom/disk)",
FeatureType.Flag,
longDescription:"For a DAT, or set of DATs, allow for splitting based on the types of the files, specifically if the type is a rom or a disk.");
}
}
internalconststringUpdateDatValue="update-dat";
internalstaticFeatureUpdateDatFlag
{
get
{
returnnewFeature(
UpdateDatValue,
newList<string>(){"-ud","--update-dat"},
"Output updated DAT to output directory",
FeatureType.Flag,
longDescription:"Once the files that were able to rebuilt are taken care of, a DAT of the files that could not be matched will be output to the output directory.");
longDescription:"Optionally, set the number of threads to use for the multithreaded operations. The default is the number of available machine threads; -1 means unlimited threads created.");
}
}
#endregion
#regionInt64features
internalconststringRadixInt64Value="radix";
internalstaticFeatureRadixInt64Input
{
get
{
returnnewFeature(
RadixInt64Value,
newList<string>(){"-rad","--radix"},
"Set the midpoint to split at",
FeatureType.Int64,
longDescription:"Set the size at which all roms less than the size are put in the first DAT, and everything greater than or equal goes in the second.");
}
}
#endregion
#regionList<string>features
internalconststringBaseDatListValue="base-dat";
internalstaticFeatureBaseDatListInput
{
get
{
returnnewFeature(
BaseDatListValue,
newList<string>(){"-bd","--base-dat"},
"Add a base DAT for processing",
FeatureType.List,
longDescription:"Add a DAT or folder of DATs to the base set to be used for all operations. Multiple instances of this flag are allowed.");
longDescription:"Include only items with this Category in the output. Additionally, the user can specify an exact match or full C#-style regex for pattern matching. Multiple instances of this flag are allowed.");
}
}
internalconststringCrcListValue="crc";
internalstaticFeatureCrcListInput
{
get
{
returnnewFeature(
CrcListValue,
newList<string>(){"-crc","--crc"},
"Filter by CRC hash",
FeatureType.List,
longDescription:"Include only items with this CRC hash in the output. Additionally, the user can specify an exact match or full C#-style regex for pattern matching. Multiple instances of this flag are allowed.");
}
}
internalconststringDatListValue="dat";
internalstaticFeatureDatListInput
{
get
{
returnnewFeature(
DatListValue,
newList<string>(){"-dat","--dat"},
"Input DAT to be used",
FeatureType.List,
longDescription:"User-supplied DAT for use in all operations. Multiple instances of this flag are allowed.");
longDescription:"Exclude any valid item or machine field from outputs. Examples include: romof, publisher, and offset.");
}
}
internalconststringExtAListValue="exta";
internalstaticFeatureExtaListInput
{
get
{
returnnewFeature(
ExtAListValue,
newList<string>(){"-exta","--exta"},
"Set extension to be included in first DAT",
FeatureType.List,
longDescription:"Set the extension to be used to populate the first DAT. Multiple instances of this flag are allowed.");
}
}
internalconststringExtBListValue="extb";
internalstaticFeatureExtbListInput
{
get
{
returnnewFeature(
ExtBListValue,
newList<string>(){"-extb","--extb"},
"Set extension to be included in second DAT",
FeatureType.List,
longDescription:"Set the extension to be used to populate the second DAT. Multiple instances of this flag are allowed.");
}
}
internalconststringFilterListValue="filter";
internalstaticFeatureFilterListInput
{
get
{
returnnewFeature(
FilterListValue,
newList<string>(){"-fi","--filter"},
"Filter a game/rom field with the given value(s)",
FeatureType.List,
longDescription:"Filter any valid item or machine field from inputs. Filters are input in the form 'key:value' or '!key:value', where the '!' signifies 'not' matching. Numeric values may also prefix the 'value' with '>', '<', or '=' accordingly. Key examples include: romof, category, and game. Additionally, the user can specify an exact match or full C#-style regex for pattern matching. Multiple instances of this flag are allowed.");
longDescription:"Include only items with this game description in the output. Additionally, the user can specify an exact match or full C#-style regex for pattern matching. Multiple instances of this flag are allowed.");
}
}
internalconststringGameNameListValue="game-name";
internalstaticFeatureGameNameListInput
{
get
{
returnnewFeature(
GameNameListValue,
newList<string>(){"-gn","--game-name"},
"Filter by game name",
FeatureType.List,
longDescription:"Include only items with this game name in the output. Additionally, the user can specify an exact match or full C#-style regex for pattern matching. Multiple instances of this flag are allowed.");
}
}
internalconststringGameTypeListValue="game-type";
internalstaticFeatureGameTypeListInput
{
get
{
returnnewFeature(
GameTypeListValue,
newList<string>(){"-gt","--game-type"},
"Include only games with a given type",
FeatureType.List,
longDescription:@"Include only items with this game type in the output. Multiple instances of this flag are allowed.
Possiblevaluesare:None,Bios,Device,Mechanical");
}
}
internalconststringItemNameListValue="item-name";
internalstaticFeatureItemNameListInput
{
get
{
returnnewFeature(
ItemNameListValue,
newList<string>(){"-rn","--item-name"},
"Filter by item name",
FeatureType.List,
longDescription:"Include only items with this item name in the output. Additionally, the user can specify an exact match or full C#-style regex for pattern matching. Multiple instances of this flag are allowed.");
}
}
internalconststringItemTypeListValue="item-type";
internalstaticFeatureItemTypeListInput
{
get
{
returnnewFeature(
ItemTypeListValue,
newList<string>(){"-rt","--item-type"},
"Filter by item type",
FeatureType.List,
longDescription:"Include only items with this item type in the output. Additionally, the user can specify an exact match or full C#-style regex for pattern matching. Multiple instances of this flag are allowed.");
}
}
internalconststringMd5ListValue="md5";
internalstaticFeatureMd5ListInput
{
get
{
returnnewFeature(
Md5ListValue,
newList<string>(){"-md5","--md5"},
"Filter by MD5 hash",
FeatureType.List,
longDescription:"Include only items with this MD5 hash in the output. Additionally, the user can specify an exact match or full C#-style regex for pattern matching. Multiple instances of this flag are allowed.");
longDescription:"Include only items without this Category in the output. Additionally, the user can specify an exact match or full C#-style regex for pattern matching. Multiple instances of this flag are allowed.");
}
}
internalconststringNotCrcListValue="not-crc";
internalstaticFeatureNotCrcListInput
{
get
{
returnnewFeature(
NotCrcListValue,
newList<string>(){"-ncrc","--not-crc"},
"Filter by not CRC hash",
FeatureType.List,
longDescription:"Include only items without this CRC hash in the output. Additionally, the user can specify an exact match or full C#-style regex for pattern matching. Multiple instances of this flag are allowed.");
longDescription:"Include only items without this game description in the output. Additionally, the user can specify an exact match or full C#-style regex for pattern matching. Multiple instances of this flag are allowed.");
longDescription:"Include only items without this game name in the output. Additionally, the user can specify an exact match or full C#-style regex for pattern matching. Multiple instances of this flag are allowed.");
longDescription:"Include only items without this item name in the output. Additionally, the user can specify an exact match or full C#-style regex for pattern matching. Multiple instances of this flag are allowed.");
longDescription:"Include only items without this item type in the output. Additionally, the user can specify an exact match or full C#-style regex for pattern matching. Multiple instances of this flag are allowed.");
}
}
internalconststringNotMd5ListValue="not-md5";
internalstaticFeatureNotMd5ListInput
{
get
{
returnnewFeature(
NotMd5ListValue,
newList<string>(){"-nmd5","--not-md5"},
"Filter by not MD5 hash",
FeatureType.List,
longDescription:"Include only items without this MD5 hash in the output. Additionally, the user can specify an exact match or full C#-style regex for pattern matching. Multiple instances of this flag are allowed.");
longDescription:"Include only items without this RIPEMD160 hash in the output. Additionally, the user can specify an exact match or full C#-style regex for pattern matching. Multiple instances of this flag are allowed.");
}
}
#endif
internalconststringNotSha1ListValue="not-sha1";
internalstaticFeatureNotSha1ListInput
{
get
{
returnnewFeature(
NotSha1ListValue,
newList<string>(){"-nsha1","--not-sha1"},
"Filter by not SHA-1 hash",
FeatureType.List,
longDescription:"Include only items without this SHA-1 hash in the output. Additionally, the user can specify an exact match or full C#-style regex for pattern matching. Multiple instances of this flag are allowed.");
longDescription:"Include only items without this SHA-256 hash in the output. Additionally, the user can specify an exact match or full C#-style regex for pattern matching. Multiple instances of this flag are allowed.");
longDescription:"Include only items without this SHA-384 hash in the output. Additionally, the user can specify an exact match or full C#-style regex for pattern matching. Multiple instances of this flag are allowed.");
longDescription:"Include only items without this SHA-512 hash in the output. Additionally, the user can specify an exact match or full C#-style regex for pattern matching. Multiple instances of this flag are allowed.");
longDescription:@"Add outputting the created DAT to known format. Multiple instances of this flag are allowed.
Possiblevaluesare:
all-AllavailableDATtypes
am,attractmode-AttractModeXML
cmp,clrmamepro-ClrMamePro
csv-StandardizedComma-SeparatedValue
dc,doscenter-DOSCenter
json-JSON
lr,listrom-MAMEListrom
lx,listxml-MAMEListxml
miss,missfile-GoodToolsMissfile
md5-MD5
msx,openmsx-openMSXSoftwareList
ol,offlinelist-OfflineListXML
rc,romcenter-RomCenter"
#ifNET_FRAMEWORK
+@"
ripemd160-RIPEMD160"
#endif
+@"
sd,sabredat-SabreDatXML
sfv-SFV
sha1-SHA1
sha256-SHA256
sha384-SHA384
sha512-SHA512
smdb,everdrive-EverdriveSMDB
sl,softwarelist-MAMESoftwareListXML
ssv-StandardizedSemicolon-SeparatedValue
tsv-StandardizedTab-SeparatedValue
xml,logiqx-LogiqxXML");
}
}
internalconststringRegionListValue="region";
internalstaticFeatureRegionListInput
{
get
{
returnnewFeature(
RegionListValue,
newList<string>(){"-reg","--region"},
"Add a region for 1G1R",
FeatureType.List,
longDescription:"Add a region (in order) for use with 1G1R filtering. If this is not supplied, then by default, only parent sets will be included in the output. Multiple instances of this flag are allowed.");
longDescription:"Include only items with this RIPEMD160 hash in the output. Additionally, the user can specify an exact match or full C#-style regex for pattern matching. Multiple instances of this flag are allowed.");
}
}
#endif
internalconststringSha1ListValue="sha1";
internalstaticFeatureSha1ListInput
{
get
{
returnnewFeature(
Sha1ListValue,
newList<string>(){"-sha1","--sha1"},
"Filter by SHA-1 hash",
FeatureType.List,
longDescription:"Include only items with this SHA-1 hash in the output. Additionally, the user can specify an exact match or full C#-style regex for pattern matching. Multiple instances of this flag are allowed.");
}
}
internalconststringSha256ListValue="sha256";
internalstaticFeatureSha256ListInput
{
get
{
returnnewFeature(
Sha256ListValue,
newList<string>(){"-sha256","--sha256"},
"Filter by SHA-256 hash",
FeatureType.List,
longDescription:"Include only items with this SHA-256 hash in the output. Additionally, the user can specify an exact match or full C#-style regex for pattern matching. Multiple instances of this flag are allowed.");
}
}
internalconststringSha384ListValue="sha384";
internalstaticFeatureSha384ListInput
{
get
{
returnnewFeature(
Sha384ListValue,
newList<string>(){"-sha384","--sha384"},
"Filter by SHA-384 hash",
FeatureType.List,
longDescription:"Include only items with this SHA-384 hash in the output. Additionally, the user can specify an exact match or full C#-style regex for pattern matching. Multiple instances of this flag are allowed.");
}
}
internalconststringSha512ListValue="sha512";
internalstaticFeatureSha512ListInput
{
get
{
returnnewFeature(
Sha512ListValue,
newList<string>(){"-sha512","--sha512"},
"Filter by SHA-512 hash",
FeatureType.List,
longDescription:"Include only items with this SHA-512 hash in the output. Additionally, the user can specify an exact match or full C#-style regex for pattern matching. Multiple instances of this flag are allowed.");
}
}
internalconststringStatusListValue="status";
internalstaticFeatureStatusListInput
{
get
{
returnnewFeature(
StatusListValue,
newList<string>(){"-is","--status"},
"Include only items with a given status",
FeatureType.List,
longDescription:@"Include only items with this item status in the output. Multiple instances of this flag are allowed.
longDescription:"Set the description header field for the output DAT(s)");
}
}
internalconststringEmailStringValue="email";
internalstaticFeatureEmailStringInput
{
get
{
returnnewFeature(
EmailStringValue,
newList<string>(){"-em","--email"},
"Set a new email of the DAT",
FeatureType.String,
longDescription:"Set the email header field for the output DAT(s)");
}
}
internalconststringEqualStringValue="equal";
internalstaticFeatureEqualStringInput
{
get
{
returnnewFeature(
EqualStringValue,
newList<string>(){"-seq","--equal"},
"Filter by size ==",
FeatureType.String,
longDescription:"Only include items of this exact size in the output DAT. Users can specify either a regular integer number or a number with a standard postfix. e.g. 8kb => 8000 or 8kib => 8192");
longDescription:@"Set the forcepacking tag to the given value.
Possiblevaluesare:None,Zip,Unzip");
}
}
internalconststringGreaterStringValue="greater";
internalstaticFeatureGreaterStringInput
{
get
{
returnnewFeature(
GreaterStringValue,
newList<string>(){"-sgt","--greater"},
"Filter by size >=",
FeatureType.String,
longDescription:"Only include items whose size is greater than or equal to this value in the output DAT. Users can specify either a regular integer number or a number with a standard postfix. e.g. 8kb => 8000 or 8kib => 8192");
}
}
internalconststringHeaderStringValue="header";
internalstaticFeatureHeaderStringInput
{
get
{
returnnewFeature(
HeaderStringValue,
newList<string>(){"-h","--header"},
"Set a header skipper to use, blank means all",
FeatureType.String,
longDescription:"Set the header special field for the output DAT(s). In file rebuilding, this flag allows for either all copier headers (using \"\") or specific copier headers by name (such as \"fds.xml\") to determine if a file matches or not.");
longDescription:"Set the homepage header field for the output DAT(s)");
}
}
internalconststringLessStringValue="less";
internalstaticFeatureLessStringInput
{
get
{
returnnewFeature(
LessStringValue,
newList<string>(){"-slt","--less"},
"Filter by size =<",
FeatureType.String,
longDescription:"Only include items whose size is less than or equal to this value in the output DAT. Users can specify either a regular integer number or a number with a standard postfix. e.g. 8kb => 8000 or 8kib => 8192");
}
}
internalconststringNameStringValue="name";
internalstaticFeatureNameStringInput
{
get
{
returnnewFeature(
NameStringValue,
newList<string>(){"-n","--name"},
"Set the internal name of the DAT",
FeatureType.String,
longDescription:"Set the name header field for the output DAT(s)");
Globals.Logger.User($"This flag '{(UpdateDescriptionValue)}' is deprecated, please use {(string.Join(",", UpdateFieldListInput.Flags))} instead. Please refer to README.1ST or the help feature for more details.");
updateFields.Add(Field.Description);
}
if(GetBoolean(features,UpdateGameTypeValue))
{
Globals.Logger.User($"This flag '{(UpdateGameTypeValue)}' is deprecated, please use {(string.Join(",", UpdateFieldListInput.Flags))} instead. Please refer to README.1ST or the help feature for more details.");
updateFields.Add(Field.MachineType);
}
if(GetBoolean(features,UpdateHashesValue))
{
Globals.Logger.User($"This flag '{(UpdateHashesValue)}' is deprecated, please use {(string.Join(",", UpdateFieldListInput.Flags))} instead. Please refer to README.1ST or the help feature for more details.");
updateFields.Add(Field.CRC);
updateFields.Add(Field.MD5);
#ifNET_FRAMEWORK
updateFields.Add(Field.RIPEMD160);
#endif
updateFields.Add(Field.SHA1);
updateFields.Add(Field.SHA256);
updateFields.Add(Field.SHA384);
updateFields.Add(Field.SHA512);
}
if(GetBoolean(features,UpdateManufacturerValue))
{
Globals.Logger.User($"This flag '{(UpdateManufacturerValue)}' is deprecated, please use {(string.Join(",", UpdateFieldListInput.Flags))} instead. Please refer to README.1ST or the help feature for more details.");
updateFields.Add(Field.Manufacturer);
}
if(GetBoolean(features,UpdateNamesValue))
{
Globals.Logger.User($"This flag '{(UpdateNamesValue)}' is deprecated, please use {(string.Join(",", UpdateFieldListInput.Flags))} instead. Please refer to README.1ST or the help feature for more details.");
updateFields.Add(Field.Name);
}
if(GetBoolean(features,UpdateParentsValue))
{
Globals.Logger.User($"This flag '{(UpdateParentsValue)}' is deprecated, please use {(string.Join(",", UpdateFieldListInput.Flags))} instead. Please refer to README.1ST or the help feature for more details.");
updateFields.Add(Field.CloneOf);
updateFields.Add(Field.RomOf);
updateFields.Add(Field.SampleOf);
}
if(GetBoolean(features,UpdateYearValue))
{
Globals.Logger.User($"This flag '{(UpdateYearValue)}' is deprecated, please use {(string.Join(",", UpdateFieldListInput.Flags))} instead. Please refer to README.1ST or the help feature for more details.");
Globals.Logger.User($"This flag '{(NotCategoryListValue)}' is deprecated, please use {(string.Join(",", FilterListInput.Flags))} instead. Please refer to README.1ST or the help feature for more details.");
Globals.Logger.User($"This flag '{(CategoryListValue)}' is deprecated, please use {(string.Join(",", FilterListInput.Flags))} instead. Please refer to README.1ST or the help feature for more details.");
Globals.Logger.User($"This flag '{(NotCrcListValue)}' is deprecated, please use {(string.Join(",", FilterListInput.Flags))} instead. Please refer to README.1ST or the help feature for more details.");
Globals.Logger.User($"This flag '{(CrcListValue)}' is deprecated, please use {(string.Join(",", FilterListInput.Flags))} instead. Please refer to README.1ST or the help feature for more details.");
Globals.Logger.User($"This flag '{(NotItemNameListValue)}' is deprecated, please use {(string.Join(",", FilterListInput.Flags))} instead. Please refer to README.1ST or the help feature for more details.");
Globals.Logger.User($"This flag '{(ItemNameListValue)}' is deprecated, please use {(string.Join(",", FilterListInput.Flags))} instead. Please refer to README.1ST or the help feature for more details.");
Globals.Logger.User($"This flag '{(NotStatusListValue)}' is deprecated, please use {(string.Join(",", FilterListInput.Flags))} instead. Please refer to README.1ST or the help feature for more details.");
Globals.Logger.User($"This flag '{(StatusListValue)}' is deprecated, please use {(string.Join(",", FilterListInput.Flags))} instead. Please refer to README.1ST or the help feature for more details.");
Globals.Logger.User($"This flag '{(NotItemTypeListValue)}' is deprecated, please use {(string.Join(",", FilterListInput.Flags))} instead. Please refer to README.1ST or the help feature for more details.");
Globals.Logger.User($"This flag '{(ItemTypeListValue)}' is deprecated, please use {(string.Join(",", FilterListInput.Flags))} instead. Please refer to README.1ST or the help feature for more details.");
Globals.Logger.User($"This flag '{(NotGameDescriptionListValue)}' is deprecated, please use {(string.Join(",", FilterListInput.Flags))} instead. Please refer to README.1ST or the help feature for more details.");
Globals.Logger.User($"This flag '{(GameDescriptionListValue)}' is deprecated, please use {(string.Join(",", FilterListInput.Flags))} instead. Please refer to README.1ST or the help feature for more details.");
Globals.Logger.User($"This flag '{(NotGameNameListValue)}' is deprecated, please use {(string.Join(",", FilterListInput.Flags))} instead. Please refer to README.1ST or the help feature for more details.");
Globals.Logger.User($"This flag '{(GameNameListValue)}' is deprecated, please use {(string.Join(",", FilterListInput.Flags))} instead. Please refer to README.1ST or the help feature for more details.");
Globals.Logger.User($"This flag '{(NotGameTypeListValue)}' is deprecated, please use {(string.Join(",", FilterListInput.Flags))} instead. Please refer to README.1ST or the help feature for more details.");
Globals.Logger.User($"This flag '{(GameTypeListValue)}' is deprecated, please use {(string.Join(",", FilterListInput.Flags))} instead. Please refer to README.1ST or the help feature for more details.");
Globals.Logger.User($"This flag '{(NotMd5ListValue)}' is deprecated, please use {(string.Join(",", FilterListInput.Flags))} instead. Please refer to README.1ST or the help feature for more details.");
Globals.Logger.User($"This flag '{Md5ListValue}' is deprecated, please use {string.Join(",", FilterListInput.Flags)} instead. Please refer to README.1ST or the help feature for more details.");
Globals.Logger.User($"This flag '{NotRipeMd160ListValue}' is deprecated, please use {string.Join(",", FilterListInput.Flags)} instead. Please refer to README.1ST or the help feature for more details.");
Globals.Logger.User($"This flag '{RipeMd160ListValue}' is deprecated, please use {string.Join(",", FilterListInput.Flags)} instead. Please refer to README.1ST or the help feature for more details.");
Globals.Logger.User($"This flag '{NotRunnableValue}' is deprecated, please use {string.Join(",", FilterListInput.Flags)} instead. Please refer to README.1ST or the help feature for more details.");
Globals.Logger.User($"This flag '{RunnableValue}' is deprecated, please use {string.Join(",", FilterListInput.Flags)} instead. Please refer to README.1ST or the help feature for more details.");
Globals.Logger.User($"This flag '{NotSha1ListValue}' is deprecated, please use {string.Join(",", FilterListInput.Flags)} instead. Please refer to README.1ST or the help feature for more details.");
Globals.Logger.User($"This flag '{Sha1ListValue}' is deprecated, please use {string.Join(",", FilterListInput.Flags)} instead. Please refer to README.1ST or the help feature for more details.");
Globals.Logger.User($"This flag '{NotSha256ListValue}' is deprecated, please use {string.Join(",", FilterListInput.Flags)} instead. Please refer to README.1ST or the help feature for more details.");
Globals.Logger.User($"This flag '{Sha256ListValue}' is deprecated, please use {string.Join(",", FilterListInput.Flags)} instead. Please refer to README.1ST or the help feature for more details.");
Globals.Logger.User($"This flag '{NotSha384ListValue}' is deprecated, please use {string.Join(",", FilterListInput.Flags)} instead. Please refer to README.1ST or the help feature for more details.");
Globals.Logger.User($"This flag '{Sha384ListValue}' is deprecated, please use {string.Join(",", FilterListInput.Flags)} instead. Please refer to README.1ST or the help feature for more details.");
Globals.Logger.User($"This flag '{NotSha512ListValue}' is deprecated, please use {string.Join(",", FilterListInput.Flags)} instead. Please refer to README.1ST or the help feature for more details.");
Globals.Logger.User($"This flag '{Sha512ListValue}' is deprecated, please use {string.Join(",", FilterListInput.Flags)} instead. Please refer to README.1ST or the help feature for more details.");
Globals.Logger.User($"This flag '{LessStringValue}' is deprecated, please use {string.Join(",", FilterListInput.Flags)} instead. Please refer to README.1ST or the help feature for more details.");
Globals.Logger.User($"This flag '{EqualStringValue}' is deprecated, please use {string.Join(",", FilterListInput.Flags)} instead. Please refer to README.1ST or the help feature for more details.");
Globals.Logger.User($"This flag '{GreaterStringValue}' is deprecated, please use {string.Join(",", FilterListInput.Flags)} instead. Please refer to README.1ST or the help feature for more details.");