diff --git a/DATabase/DATabase.cs b/DATabase/DATabase.cs index d970696b..77be777d 100644 --- a/DATabase/DATabase.cs +++ b/DATabase/DATabase.cs @@ -316,6 +316,13 @@ namespace SabreTools } // Split a DAT by extension + else if (extsplit) + { + foreach (string input in inputs) + { + InitExtSplit(input, exta, extb, outdir); + } + } logger.Close(); return; @@ -950,10 +957,10 @@ Make a selection: /// /// Wrap splitting a DAT by 2 extensions /// - /// Input file or folder to be converted - /// Root directory to base path lengths on - /// True is games should not be renamed - /// True if forcepacking="unzip" should be included + /// Input file or folder to be split + /// First extension to split on + /// Second extension to split on + /// Output directory for the split files private static void InitExtSplit(string input, string exta, string extb, string outdir) { // Strip any quotations from the names @@ -966,7 +973,7 @@ Make a selection: { if (exta == "" || extb == "") { - logger.Warning("Two extension are needed to split a DAT!"); + logger.Warning("Two extensions are needed to split a DAT!"); return; } ExtSplit es = new ExtSplit(input, exta, extb, outdir, logger); diff --git a/README.MD b/README.MD index 8921cf41..98588472 100644 --- a/README.MD +++ b/README.MD @@ -22,6 +22,7 @@ The main tool of the SabreTools suite. Performs the majority of the core feature
  • Importing and Generating DAT files in RomVault and XML formats
  • Converting DATs from RomVault to XML format
  • Trim DAT entries and optionally merge into a single game (formerly SingleGame; requested by Kludge)
  • +
  • Split a DAT using two different file extensions within the DAT (formerly DatSplit)
  • Add and remove sources and systems from the database
  • Retrieve a list of all sources and systems that are available
  • diff --git a/SabreHelper/Build.cs b/SabreHelper/Build.cs index 345216f0..059faf95 100644 --- a/SabreHelper/Build.cs +++ b/SabreHelper/Build.cs @@ -85,11 +85,12 @@ Options: -es, --ext-split Split a DAT by two file extensions exta= First extension to split by extb= Second extension to split by + out= Output directory -g, --generate Start tool in generate mode -ga, --generate-all Start tool in generate all mode system= Comma-separated list of system IDs source= Comma-separated list of source IDs - out= Output directoryComma-separated list + out= Output directory -nr, --no-rename Don't auto-rename games -old, --romvault Produce a DAT in RV format -i, --import Start tool in import mode