Update available
Changes
- added IO functions (archive, execute)
- fixed issue in patch io function
- removed compression on patch diff files
Notes
More IO functions added. Archive behaves like -m0 but allows you to the archive to stdout and read from stdin when decoding (if you ever need that). Then there is execute which allows you execute several instances of another executable in parallel mode while all their inputs are fed from one source and all their output is fed to one destination.
Archive
Code:
xtool archive files1 files2... archive
There is nothing to add here as I have personal uses for this but the example would be
Code:
xtool archive game\* mygame.xtl
xtool decode mygame.xtl extracted\*
Execute
Code:
xtool execute [parameters] input output [exec_syntax]
Too lazy to write description but, here's an example
Code:
xtool.exe execute -c64mb -t8 UI.sb UI.bin bcm.exe -b64 [filein] [fileout]
xtool.exe decode -t100p UI.bin UI_dec.sb bcm.exe -d [filein] [fileout]
The left side of the syntax is to command xtool and after specifying input and output files,
the right side begins and here you can write the command line that should be used to perform execution.
[filein], [fileout], [stdin], [stdout] can be used and denote what IO the program being executed uses.
[] is used to avoid conflicting with Freearc's <>
Freearc example would look like this
Code:
[External compressor:xbcm]
header = 0
packcmd = xtool.exe execute { -option} - - <stdin> <stdout> bcm.exe -b64 [filein] [fileout]
unpackcmd = xtool.exe decode -t100p - - <stdin> <stdout> bcm.exe -d [filein] [fileout]
and the method would be -mxbcm:c64mb:t75p