No description
- C 94%
- CMake 6%
|
|
||
|---|---|---|
| .forgejo/workflows | ||
| tests | ||
| .gitignore | ||
| CMakeLists.txt | ||
| DOOM1.WAD | ||
| README.md | ||
| spitwad.c | ||
| spitwad.h | ||
spitwad
A C library for reading, writing, and manipulating WAD files. The WAD format was created by id Software for DOOM and has since become a staple of game modding. spitwad treats WADs as a general-purpose archive format — use it for your DOOM clone, or package arbitrary data and send it over a network.
Quick Start
cmake -B build
cmake --build build
#include "spitwad.h"
struct WAD wad;
wad_init(&wad, PWAD);
wad_add_lump(&wad, "GREETING", (const unsigned char *)"hello", 5);
wad_write_file(&wad, "hello.wad");
wad_destroy(&wad);
Requirements
- CMake 3.22+
- C99 compiler
- Any POSIX platform (Linux, macOS, BSD)