mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[SabreTools] Merge TrimMerge into Update
This commit is contained in:
@@ -361,8 +361,7 @@ namespace SabreTools
|
||||
case "--skip":
|
||||
skip = true;
|
||||
break;
|
||||
case "-tm":
|
||||
case "--trim-merge":
|
||||
case "-trim":
|
||||
trim = true;
|
||||
break;
|
||||
case "-tsv":
|
||||
@@ -585,8 +584,8 @@ namespace SabreTools
|
||||
|
||||
// If more than one switch is enabled, show the help screen
|
||||
if (!(add ^ datfromdir ^ extsplit ^ generate ^ genall ^ hashsplit ^ import ^ listsrc ^ listsys ^
|
||||
(merge || diff) ^ (update || outputCMP || outputRC || outputSD || outputXML || outputMiss) ^
|
||||
offlineMerge ^ rem ^ stats ^ trim))
|
||||
(merge || diff || update || outputCMP || outputRC || outputSD || outputXML || outputMiss || trim) ^
|
||||
offlineMerge ^ rem ^ stats))
|
||||
{
|
||||
_logger.Error("Only one feature switch is allowed at a time");
|
||||
Build.Help();
|
||||
@@ -644,7 +643,7 @@ namespace SabreTools
|
||||
InitUpdate(inputs, 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, merge, diff, cascade, inplace, bare, gamename, romname,
|
||||
romtype, sgt, slt, seq, crc, md5, sha1, nodump, outdir, clean, dedup);
|
||||
romtype, sgt, slt, seq, crc, md5, sha1, nodump, trim, single, root, outdir, clean, dedup);
|
||||
}
|
||||
|
||||
// Add a source or system
|
||||
@@ -681,15 +680,6 @@ namespace SabreTools
|
||||
}
|
||||
}
|
||||
|
||||
// Consolodate and trim DAT
|
||||
else if (trim)
|
||||
{
|
||||
foreach (string input in inputs)
|
||||
{
|
||||
InitTrimMerge(input, root, !norename, !disableForce);
|
||||
}
|
||||
}
|
||||
|
||||
// Split a DAT by extension
|
||||
else if (extsplit)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user