Privateer 2: The Darkening -- Data Dumper

A tool to extract data from Privateer 2: The Darkening data files.

Thanks to all the contributors of the Privateer 2 Thread.

On Windows, the 32-bit Visual C++ 2015 Runtime is needed.

Usage: priv2dump <filename> [...]

Supported container formats:
 - BIGF
 - IFF

Supported compression formats:
 - Deflate (using zlib)
 - 0x10fb
 - Huffman (based on HCl's decoder)

Supported data formats:
 - FAT ADPCM/PCM Audio ..................... WAV (using libsndfile)
 - SHP (based on shp2bmp by Mario Brito) ... PNG (using libpng)
 - Sets Base Image ......................... PNG
 - BRender Pixmap (BRPM) ................... PNG
 - Fonts ................................... PNG
 - BRender 3D Model (BR3D) ................. OBJ/MTL
 - Indexed String list ..................... TXT
 - Movie List .............................. TXT

======

To convert the huffman.dot file to an image file, use Graphviz:

    dot -Tpng huffman.dot -ohuffman.png

Requirements:

 - zlib
 - libsndfile
 - libpng