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,
|
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,
|
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="tsv">Output files in TSV format</param>
|
||||||
/// <param name="outdir">Optional param for output directory</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="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,
|
private static void InitUpdate(string input,
|
||||||
string filename,
|
string filename,
|
||||||
string name,
|
string name,
|
||||||
@@ -140,7 +141,8 @@ namespace SabreTools
|
|||||||
bool romba,
|
bool romba,
|
||||||
bool tsv,
|
bool tsv,
|
||||||
string outdir,
|
string outdir,
|
||||||
bool clean)
|
bool clean,
|
||||||
|
bool dedup)
|
||||||
{
|
{
|
||||||
// Set the special flags
|
// Set the special flags
|
||||||
ForceMerging fm = ForceMerging.None;
|
ForceMerging fm = ForceMerging.None;
|
||||||
@@ -214,7 +216,7 @@ namespace SabreTools
|
|||||||
ForceMerging = fm,
|
ForceMerging = fm,
|
||||||
ForceNodump = fn,
|
ForceNodump = fn,
|
||||||
ForcePacking = fp,
|
ForcePacking = fp,
|
||||||
MergeRoms = false,
|
MergeRoms = dedup,
|
||||||
|
|
||||||
UseGame = usegame,
|
UseGame = usegame,
|
||||||
Prefix = prefix,
|
Prefix = prefix,
|
||||||
|
|||||||
@@ -174,6 +174,7 @@ Options:
|
|||||||
Supported values are:
|
Supported values are:
|
||||||
None, Zip, Unzip
|
None, Zip, Unzip
|
||||||
-clean Clean game names according to WoD standards
|
-clean Clean game names according to WoD standards
|
||||||
|
-dd, --dedup Enable deduping in the created DAT
|
||||||
-out= Output directory
|
-out= Output directory
|
||||||
|
|
||||||
Filenames and directories can't start with a reserved string
|
Filenames and directories can't start with a reserved string
|
||||||
|
|||||||
Reference in New Issue
Block a user