xstract [-p,-f,--package,--file]=PATH [OPTION...]
Options:
-p, --pkg : Sets the package file path.
-f, --file : Sets the package file path.
-x, --extract : Extract the contents of package PATH to OUTPUT.
-v, --version : Shows version and copyright notice.
-h, --help : Shows this message.
-o, --output [DIR] : Sets OUTPUT to directory DIR. Default value is './'
Warning: Currently, xstract does not support operating systems other than GNU/Linux. See 1
- A C Compiler compatible with the gnu99 standard.
- CMake >= 3.16
be16toh,be32tohandbe64tohfunctions. (Found in <endian.h> on Linux)mmapsupport. See 1
cd xstract # Source directory
mkdir build
cd build
cmake -S.. -B.
makesudo make installFootnotes
-
Since I created this tool for my own use, I didn't bother porting it to non-Linux operating systems. Adding support for other Unix-like systems should be relatively straightforward; however, porting it to Windows might be a bit more complicated. This is because the STFS handling library uses
mmapto load files into the program's address space for the sake of memory efficiency. If you know how (and want) to port the code to your preferred operating system, feel free to contribute.xstfs.hassumes a buffer which holds the file contents as an array of bytes. ↩ ↩2