THDAT(1) | General Commands Manual | THDAT(1) |
thdat
— Touhou
archive tool
thdat |
[-V ] [[-c |
-l | -x ]
[d | version]]
[archive [file ...]] |
The thdat
utility extracts files from an
archive or creates a new archive from a set of files. The following commands
are available:
thdat
-c
version archive
file [file ...]thdat
-l
[d
| version]
archivethdat
-x
[d
| version]
archive [file ...]thdat
-V
The version specifies which archive format to use. Running the
program without a command will list the supported formats.
If d is specified instead of
version, thdat
automatically
detects the file format.
OMP_NUM_THREADS
OMP_NUM_THREADS
is not set
depends on the OpenMP implementation.The thdat
utility exits with 0 on success,
1 on error.
Create a new archive from the input files:
thdat -c6 output.dat input.anm input.msg input.ecl
Lists the contents of the specified archive:
thdat -l128 th128.dat
Extract all files from the archive to the current working directory:
thdat -x8 th08.dat
BGM archives are not supported by the
thdat
utility.
The format used by TH03-TH05 uses separate encryption keys for each entry in the archives, as well as one key for the entry list. It is not known if these keys are computed from the entries, or if they are randomly assigned. They are currently set to constant values.
Original TH08 and TH09 archives contain a large amount of encrypted zero padding at the end of the entry list. This padding is reduced to four bytes.
File names may not be properly sanitized when extracting. Furthermode, invalid data may not be properly handled. Do not extract untrusted archives.
April 16, 2018 | thtk-12 |