A Transformice tool that let you unpack the SWF easily.
The most basic usage:
unpacker unpacked.swfIt will download the SWF from the server and unpack it to the specified file.
You can specify the file to unpack using the -i argument.
unpacker -i Transformice.swf unpacked.swfIt also possible to use stdin as the input and stdout as the output by defining -i to - and the output filename to - respectively.
Using stdin as the input:
unpacker -i - unpacked.swfUsing stdout as the output:
unpacker -Few libraries are needed in order to this project to compile.
You can install most fmt and cpr using vcpkg.
argparse is downloaded using CMake's FetchContent utility.
As for swflib, you'll need to get it from here.
Install the dependencies and configure the CMake project. You'll need to provide the toolchain file to cmake in order to find the libraries.
mkdir build
cd build
cmake .. "-DCMAKE_TOOLCHAIN_FILE=[path to vcpkg]/scripts/buildsystems/vcpkg.cmake"You can also provide additional directives, such as -Dswflib_DIR=[path to swflib] to help cmake finding swflib or -DCMAKE_BUILD_TYPE=Release to build in release mode.
Afterward, you'll be able to build the project:
cmake --build .