Files
fpk/README.md
T
2026-09-13 17:15:52 +02:00

34 lines
698 B
Markdown

# fpk (Forlorn Pak)
[![License: MPL 2.0](https://img.shields.io/badge/License-MPL_2.0-brightgreen.svg)](https://opensource.org/licenses/MPL-2.0)
Packs a directory tree into a single flat binary archive. C89, no dependencies.
## Building
```bash
./build.sh debug release tools # Unix
build.bat debug release tools # Windows
```
## Usage
```bash
fpack output.fpk assets/
funpack output.fpk [unpacked/] # dir defaults to "output" if omitted
```
```c
#include <fpk/fpk.h>
fpk_t *pak = fpk_open("assets.fpk");
fpk_find(pak, "some/file.bin", &data, &size);
fpk_close(pak);
```
See [docs/format.md](docs/format.md) for the on-disk layout.
## License
Mozilla Public License 2.0 (MPL-2.0)