dd669fb9b0423ebbaf8cabc28e46cfa9ea9b6529
fpk (Forlorn Pak)
Packs a directory tree into a single flat binary archive. C89, no dependencies.
Building
./build.sh debug release tools # Unix
build.bat debug release tools # Windows
Usage
fpack output.fpk assets/
funpack output.fpk [unpacked/] # dir defaults to "output" if omitted
#include <fpk/fpk.h>
struct fpk *pak = fpk_open("assets.fpk");
fpk_entry_t *entry = fpk_find(pak, "some/file.bin");
void *data = fpk_read(pak, entry, &size);
fpk_close(pak);
See docs/format.md for the on-disk layout.
License
Mozilla Public License 2.0 (MPL-2.0)
Languages
C
81.5%
Makefile
16.7%
Shell
1.7%