mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[DATabase] Add dedupe to Convert/Update
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user