Compressed data file access lib?

“Thomas Lund” wrote in message news:3A1DCE31.857794A0 at id.dk

Is anyone working on a cross platform lib for writing/reading some kind
of compressed data file?

I am thinking in the lines of the Quake .pak files.

Python has support for zip files in the standard library. CrystalSpace also
includes zip file support. Both of these are open source and might be
converted to stand-alone C libraries. Both use zlib for the actual
compression/decompression.–
Rainer Deyke (root at rainerdeyke.com)
Shareware computer games - http://rainerdeyke.com
"In ihren Reihen zu stehen heisst unter Feinden zu kaempfen" - Abigor

Is anyone working on a cross platform lib for writing/reading some kind
of compressed data file?

I am thinking in the lines of the Quake .pak files.

This is quite low level, so this could/should be a part of SDL or SDL
support libs (some kind of “SDL_pak” lib).

If no one has done this yet, I might write one in a couple of month (no
time right now). But surely someone must have done this hundreds of
times before.

I have a small code that give a SDL_RWop from a file in a zip, if you want
it…
ask :slight_smile:
(uses zlib)

Gautier

quake3’s .pk3 files are just regular zip files with the extension renamed

here is a page for reading/writing zip files using zlib

http://www.winimage.com/zLibDll/unzip.html

“Thomas Lund” wrote in message news:3A1DCE31.857794A0 at id.dk…>

Is anyone working on a cross platform lib for writing/reading some kind
of compressed data file?

I am thinking in the lines of the Quake .pak files.

This is quite low level, so this could/should be a part of SDL or SDL
support libs (some kind of “SDL_pak” lib).

If no one has done this yet, I might write one in a couple of month (no
time right now). But surely someone must have done this hundreds of
times before.

/Thomas

Is anyone working on a cross platform lib for writing/reading some kind
of compressed data file?

I am thinking in the lines of the Quake .pak files.

This is quite low level, so this could/should be a part of SDL or SDL
support libs (some kind of “SDL_pak” lib).

If no one has done this yet, I might write one in a couple of month (no
time right now). But surely someone must have done this hundreds of
times before.

/Thomas