mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[SabreTools, DatFile, Enums, Flags] Overhaul splitting
This commit is contained in:
@@ -365,30 +365,6 @@ Options:
|
||||
created. If the user specifies that only 1 thread is to be used, it
|
||||
defaults to the original, serial implementation of the DFD code.
|
||||
|
||||
-es, --ext-split Split a DAT by two file extensions
|
||||
For a DAT, or set of DATs, allow for splitting based on a list of input
|
||||
extensions. This can allow for combined DAT files, such as those
|
||||
combining two separate systems, to be split. Files with any extensions
|
||||
not listed in the input lists will be included in both outputted DAT
|
||||
files.
|
||||
|
||||
-exta= First extension (multiple allowed)
|
||||
Set the extensions to be used to populate the first DAT. If more
|
||||
than one extension is defined, they must be placed in separate flags
|
||||
|
||||
-extb= Second extension (multiple allowed)
|
||||
Set the extensions to be used to populate the second DAT. If more
|
||||
than one extension is defined, they must be placed in separate flags
|
||||
|
||||
-out= Set the name of the output directory
|
||||
This sets an output folder to be used when the files are created. If
|
||||
a path is not defined, the application directory is used instead.
|
||||
|
||||
-ip, --inplace Write to the input directories
|
||||
This will write out the split files to the source folder instead of
|
||||
writing them out to the runtime folder by default (or the output
|
||||
folder if overridden).
|
||||
|
||||
-ex, --extract Backup and remove copier headers
|
||||
This will detect, store, and remove copier headers from a file or folder
|
||||
of files. The headers are backed up and collated by the hash of the
|
||||
@@ -414,56 +390,6 @@ Options:
|
||||
By default, all headers that are removed from files are backed up in
|
||||
the database. This flag allows users to skip that step entirely,
|
||||
avoiding caching the headers at all.
|
||||
|
||||
-hs, --hash-split Split a DAT or folder by best-available hashes
|
||||
For a DAT, or set of DATs, allow for splitting based on the best
|
||||
available hash for each file within. The order of preference for the
|
||||
outputted DATs is as follows:
|
||||
- Nodump
|
||||
- SHA-512 available
|
||||
- SHA-386 available
|
||||
- SHA-256 available
|
||||
- SHA-1 available
|
||||
- MD5 available
|
||||
- CRC or worse available
|
||||
|
||||
-out= Set the name of the output directory
|
||||
This sets an output folder to be used when the files are created. If
|
||||
a path is not defined, the application directory is used instead.
|
||||
|
||||
-ip, --inplace Write to the input directories
|
||||
This will write out the split files to the source folder instead of
|
||||
writing them out to the runtime folder by default (or the output
|
||||
folder if overridden).
|
||||
|
||||
-ls, --lvl-split Split a SuperDAT or folder by lowest available level
|
||||
For a DAT, or set of DATs, allow for splitting based on the lowest
|
||||
available level of game name. That is, if a game name is top/mid/last,
|
||||
then it will create an output DAT for the parent directory "mid" in a
|
||||
folder called "top" with a game called "last".
|
||||
|
||||
-out= Set the name of the output directory
|
||||
This sets an output folder to be used when the files are created. If
|
||||
a path is not defined, the application directory is used instead.
|
||||
|
||||
-ip, --inplace Write to the input directories
|
||||
This will write out the split files to the source folder instead of
|
||||
writing them out to the runtime folder by default (or the output
|
||||
folder if overridden).
|
||||
|
||||
-s, --short Use short names for outputted DATs
|
||||
Instead of using ClrMamePro-style long names for DATs, use just the
|
||||
name of the folder as the name of the DAT. This can be used in
|
||||
conjunction with --base to output in the format of "Original Name
|
||||
(Name)" instead.
|
||||
|
||||
-ba, --base Use source DAT as base name for outputs
|
||||
If splitting an entire folder of DATs, some output files may be
|
||||
normally overwritten since the names would be the same. With this
|
||||
flag, the original DAT name is used in the output name, in the
|
||||
format of "Original Name (Dir - Name)". This can be used in
|
||||
conjunction with --short to output in the format of "Original Name
|
||||
(Name)" instead.
|
||||
|
||||
-re, --restore Restore copier headers from a variety of file types
|
||||
This will make use of stored copier headers and reapply them to files if
|
||||
@@ -484,6 +410,73 @@ Options:
|
||||
-out= Set the name of the output directory
|
||||
This sets an output folder to be used when the files are created. If
|
||||
a path is not defined, the application directory is used instead.
|
||||
|
||||
-sp, --split Split input DATs by a given criteria
|
||||
This feature allows the user to split input DATs by a number of different
|
||||
possible criteria. See the individual input information for details. More
|
||||
than one split type is allowed at a time.
|
||||
|
||||
-out= Set the name of the output directory
|
||||
This sets an output folder to be used when the files are created. If
|
||||
a path is not defined, the application directory is used instead.
|
||||
|
||||
-ip, --inplace Write to the input directories
|
||||
This will write out the split files to the source folder instead of
|
||||
writing them out to the runtime folder by default (or the output
|
||||
folder if overridden).
|
||||
|
||||
-es, --ext Split a DAT by two file extensions
|
||||
For a DAT, or set of DATs, allow for splitting based on a list of
|
||||
input extensions. This can allow for combined DAT files, such as
|
||||
those combining two separate systems, to be split. Files with any
|
||||
extensions not listed in the input lists will be included in both
|
||||
outputted DAT files.
|
||||
|
||||
-exta= First extension (multiple allowed)
|
||||
Set the extensions to be used to populate the first DAT. If more
|
||||
than one extension is defined, they must be placed in separate
|
||||
flags
|
||||
|
||||
-extb= Second extension (multiple allowed)
|
||||
Set the extensions to be used to populate the second DAT. If
|
||||
more than one extension is defined, they must be placed in
|
||||
separate flags
|
||||
|
||||
-hs, --hash Split a DAT or folder by best-available hashes
|
||||
For a DAT, or set of DATs, allow for splitting based on the best
|
||||
available hash for each file within. The order of preference for the
|
||||
outputted DATs is as follows:
|
||||
- Nodump
|
||||
- SHA-512 available
|
||||
- SHA-386 available
|
||||
- SHA-256 available
|
||||
- SHA-1 available
|
||||
- MD5 available
|
||||
- CRC or worse available
|
||||
|
||||
-ls, --level Split a SuperDAT or folder by lowest available level
|
||||
For a DAT, or set of DATs, allow for splitting based on the lowest
|
||||
available level of game name. That is, if a game name is top/mid/
|
||||
last, then it will create an output DAT for the parent directory
|
||||
"mid" in a folder called "top" with a game called "last".
|
||||
|
||||
-s, --short Use short names for outputted DATs
|
||||
Instead of using ClrMamePro-style long names for DATs, use just
|
||||
the name of the folder as the name of the DAT. This can be used
|
||||
in conjunction with --base to output in the format of "Original
|
||||
Name (Name)" instead.
|
||||
|
||||
-ba, --base Use source DAT as base name for outputs
|
||||
If splitting an entire folder of DATs, some output files may be
|
||||
normally overwritten since the names would be the same. With
|
||||
this flag, the original DAT name is used in the output name, in
|
||||
the format of "Original Name (Dir - Name)". This can be used in
|
||||
conjunction with --short to output in the format of "Original
|
||||
Name (Name)" instead.
|
||||
|
||||
-ts, --type Split DAT(s) or folder by file types (rom/disk)
|
||||
For a DAT, or set of DATs, allow for splitting based on the types of
|
||||
the files, specifically if the type is a rom or a disk.
|
||||
|
||||
-ss, --sort Sort input files by a set of DATs
|
||||
This feature allows the user to quickly rebuild based on a supplied DAT
|
||||
@@ -718,19 +711,6 @@ Options:
|
||||
-txt, --text Output in generic text format
|
||||
Output all rom information in generic text format. If no other format
|
||||
flags are enabled, this is the default output.
|
||||
|
||||
-ts, --type-split Split DAT(s) or folder by file types (rom/disk)
|
||||
For a DAT, or set of DATs, allow for splitting based on the types of the
|
||||
files, specifically if the type is a rom or a disk.
|
||||
|
||||
-out= Set the name of the output directory
|
||||
This sets an output folder to be used when the files are created. If
|
||||
a path is not defined, the application directory is used instead.
|
||||
|
||||
-ip, --inplace Write to the input directories
|
||||
This will write out the split files to the source folder instead of
|
||||
writing them out to the runtime folder by default (or the output
|
||||
folder if overridden).
|
||||
|
||||
-ud, --update Update and manipulate DAT(s)
|
||||
This is the multitool part of the program, allowing for almost every
|
||||
|
||||
Reference in New Issue
Block a user