Skip to content

Commit d1b2afb

Browse files
committed
Add an option to convert all textures inside a directory
Also adds support for one positional argument, so the user can drag and drop a file or directory to start the process.
1 parent 0e46f4d commit d1b2afb

2 files changed

Lines changed: 269 additions & 61 deletions

File tree

src/main/java/dev/pinter/tqextract/README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ of a total 25278 TEX files, so 24460 reversed.
1717
Convert a TEX to PNG on Windows
1818

1919
~~~
20-
./texconverter-cli.exe -i /tmp/TIGERMAN01.TEX -o /tmp/tigerman.png
20+
./texconverter-cli.exe -i x:/tmp/TIGERMAN01.TEX -o x:/tmp/tigerman.png
2121
~~~
2222

2323
Convert a TEX to DDS on Linux
@@ -26,6 +26,17 @@ Convert a TEX to DDS on Linux
2626
./texconverter-cli.sh -i /tmp/TIGERMAN01.TEX -o /tmp/tigerman.dds
2727
~~~
2828

29+
The example below converts all textures found in the directory specified, and a new directory "x:/tmp/output-texconvert/textures" will be
30+
created containing resulting textures. If no conversion type is specified with the command line options,
31+
***all .TEX will be converted to .DDS, and all .DDS will be converted to .TEX.***
32+
33+
**If you drag-and-drop a directory to texconverter-cli.exe, the process will start in a console window, the log can be found in the default
34+
temporary directory, (%TEMP% on Windows, /tmp on Linux). The same can be done with a single file.**
35+
36+
~~~
37+
./texconverter-cli.exe -d x:/tmp/textures
38+
~~~
39+
2940
## Extract
3041

3142
The tqextract-cli is a tool to extract all .ARC and .ARZ from the game.

0 commit comments

Comments
 (0)