THANM(1) |
General Commands Manual |
THANM(1) |
NAME
thanm — Touhou sprite archive tool
SYNOPSIS
command[option] [archive [...]] |
|
DESCRIPTION
The
thanm utility performs various actions on sprite archives. The following commands are available:
-
l[f] archive
-
Displays a specification of the archive.
-
x[f] archive [file ...]
-
Extracts image files. If no files are specified, all files are extracted.
-
r[f] archive name file
-
Replaces an entry in the archive. The name can be obtained by the l command.
-
c[f] archive input
-
Creates a new archive from a specification obtained by the l command. It will look for referenced image files in the current directory.
-
h
-
Displays the usage.
-
V
-
Displays the program version.
These options are accepted:
-
f
-
The f option can be used to ignore certain errors.
EXIT STATUS
The thanm utility exits with 0 on success, 1 on error.
BUGS
A few files from TH12 contain overlapping entries with different formats. Dumping and recreating these archives will not result in the same archives. The affected pixels seem to all have 0 for alpha though.
SECURITY CONSIDERATIONS
File names may not be properly sanitized when extracting. Furthermode, invalid data may not be properly handled. Do not operate on untrusted files.