[DATabase] Add dedupe to Convert/Update

This commit is contained in:
Matt Nadareski
2016-06-11 14:25:25 -07:00
parent 487b2ea74c
commit 0d12d3bad5
3 changed files with 6 additions and 3 deletions

View File

@@ -593,7 +593,7 @@ namespace SabreTools
{
InitUpdate(input, filename, name, description, category, version, date, author, email, homepage, url, comment, header,
superdat, forcemerge, forcend, forcepack, outputCMP, outputMiss, outputRC, outputSD, outputXML, usegame, prefix,
postfix, quotes, repext, addext, datprefix, romba, tsv, outdir, clean);
postfix, quotes, repext, addext, datprefix, romba, tsv, outdir, clean, dedup);
}
}

View File

@@ -108,6 +108,7 @@ namespace SabreTools
/// <param name="tsv">Output files in TSV format</param>
/// <param name="outdir">Optional param for output directory</param>
/// <param name="clean">True to clean the game names to WoD standard, false otherwise (default)</param>
/// <param name="dedup">True to dedupe the roms in the DAT, false otherwise (default)</param>
private static void InitUpdate(string input,
string filename,
string name,
@@ -140,7 +141,8 @@ namespace SabreTools
bool romba,
bool tsv,
string outdir,
bool clean)
bool clean,
bool dedup)
{
// Set the special flags
ForceMerging fm = ForceMerging.None;
@@ -214,7 +216,7 @@ namespace SabreTools
ForceMerging = fm,
ForceNodump = fn,
ForcePacking = fp,
MergeRoms = false,
MergeRoms = dedup,
UseGame = usegame,
Prefix = prefix,

View File

@@ -174,6 +174,7 @@ Options:
Supported values are:
None, Zip, Unzip
-clean Clean game names according to WoD standards
-dd, --dedup Enable deduping in the created DAT
-out= Output directory
Filenames and directories can't start with a reserved string