Skip to content

Release 1.1

Latest

Choose a tag to compare

@Alvarwow69 Alvarwow69 released this 26 Sep 11:23
f668179

This update bring two major feature: Compression and Library

Compression

You're now able to add compression process into the packer.
To do so, go to Packer.cpp and find the SWFP_COMP macro and edit the code above to add your own compression process. For UnPacker.cpp find SWFP_COMP and edit the code above.

To enable the compression process use -DSWFP_COMP=ON (default: OFF).

Note: There is a default compression algorithm: zstd.
The header is already include in the project just build a static libraries and add it to the cmake.
Add zstd_static to STATIC_LIB_NAME and ${CMAKE_SOURCE_DIR}/libraries/zstd_static.lib to STATIC_LIB in the CMakeLists.txt.

Library

UnPacker is now avalible as static and shared library. To enable library build add BUILD_UNPACK_LIB_SHARED=ON or BUILD_UNPACK_LIB_STATIC=ON to cmake generation

ChangeLog

Full Changelog: v1.0...v1.1