Commit graph

11 commits

Author SHA1 Message Date
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