Commit Graph

14 Commits

Author SHA1 Message Date
Daniel Gibson 55d4ca2007 Update README to mention that Sin and Daikatana
and to describe commandline options
2017-07-05 19:13:28 +02:00
Daniel Gibson 218f2e2bdf Support Sin .sin pak files
Apparently the only differences to Q2 paks are the header being "SPAK"
instead of "PACK" and directory entry's names being 120chars long
instead of 56, see:
https://github.com/id-Software/RTCW-SP/blob/master/src/bspc/l_qfiles.h#L71

This even seems to work.
Refactored a bit to easily support Q2, DK and Sin (and maybe more?) paks
and rewrote mktree() in a shorter, more elegant way without malloc() :)
2017-04-08 22:57:06 +02:00
Daniel Gibson 1248383e46 Add Daikatana pak file format description to README 2016-04-02 17:04:30 +02:00
Daniel Gibson 60c556b7b8 make sure -o is followed by path, not other option 2016-04-02 16:47:38 +02:00
Yamagi Burmeister c4f79aee0e Some cleanup to extract_compressed(). No functional change. 2016-04-02 13:57:04 +02:00
Daniel Gibson 23fc7b156b Add -o output_dir option, partially based on #1 2016-04-02 12:50:58 +02:00
Daniel Gibson 7dd6c848ec Support Daikatana and Quake(2) .pak files in same binary, -dk switch
by default pakextract now assumes Quake(2) format paks, add the -dk
switch to the commandline for Daikatana format.
e.g.: pakextract -dk -l /path/to/Daikatana/data/pak1.pak
will list the files in Daikatana's pak1.pak
2016-04-02 12:49:04 +02:00
Daniel Gibson 5f69e932eb dir entries array instead of linked list, other cleanups
also, read structs element-wise instead of the whole struct at once.

small fix in Makefile - use -std=gnu11, else on Linux I don't get
strsep()
2016-04-02 12:48:30 +02:00
Daniel Gibson 98a66c68cd Update Copyright 2016-04-02 00:19:11 +02:00
Yamagi Burmeister f14c10c65e Very first cut of data decompression
This is a best effort implementation, mostly done with gazing at a hex
editor and after the third beer. :) The decompressed .bsp maps are
loading fine, but who knows if things are really correct...
2016-04-01 23:42:50 +02:00
Yamagi Burmeister bb50d7486e Overhaul the Makefile:
- Switch DAIKATANA on
- C11 instead of C89
- Clang is better than gcc ;)
2016-04-01 23:41:17 +02:00
Daniel Gibson d7fa8c2cc2 Half-finished Daikatana support, list support (pakextract -l)
* pakextract -l bla.pak lists all the contained files and their sizes
* decompressing compressed files in daikatana .paks still is missing.
2016-04-01 16:24:37 +02:00
Yamagi Burmeister 080748ed4d Add LICENSE
A small tool to extract Quake II pak files.
2012-04-29 11:24:08 +02:00
Yamagi Burmeister 5e70aa132e Add a tool to extract pakfiles 2012-04-04 15:30:26 +00:00