Tree


.github/
.gitignorecommits | blame
CMakeLists.txtcommits | blame
DOOM1.WADcommits | blame
READMEcommits | blame
spitwad.ccommits | blame
spitwad.hcommits | blame
tests/

README

spitwad

A C library for reading, writing, and manipulating WAD files. The [WAD format](https://burkey.co/Software+Documentation/spitwad/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)

-- Documentation --

Full API reference and format documentation: [burkey.co/Software Documentation/spitwad](https://burkey.co/Software+Documentation/spitwad/spitwad)