diff --git a/DATabase/DATabase.cs b/DATabase/DATabase.cs
index 4f75c766..3da53bd1 100644
--- a/DATabase/DATabase.cs
+++ b/DATabase/DATabase.cs
@@ -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);
}
}
diff --git a/DATabase/Partials/DATabase_Inits.cs b/DATabase/Partials/DATabase_Inits.cs
index 4df01e41..fbf74631 100644
--- a/DATabase/Partials/DATabase_Inits.cs
+++ b/DATabase/Partials/DATabase_Inits.cs
@@ -108,6 +108,7 @@ namespace SabreTools
/// Output files in TSV format
/// Optional param for output directory
/// True to clean the game names to WoD standard, false otherwise (default)
+ /// True to dedupe the roms in the DAT, false otherwise (default)
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,
diff --git a/SabreHelper/Data/Build.cs b/SabreHelper/Data/Build.cs
index 940f094a..076108f0 100644
--- a/SabreHelper/Data/Build.cs
+++ b/SabreHelper/Data/Build.cs
@@ -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