views:

27

answers:

1

Hi All,

I'm currently writing an iPhone app where I need to uncompress several files from .pak archive. I'm assuming libz.dylib will probably have the ability to do this but I'm having a hard time find any code on the subject. Anyone got any example code or can point me in the right direction? Any help at all would be much appreciated.

Cheers.

A: 

What do you mean by "PAK"?

If it's actually a .zip, look up minizip or ziparchive, which may do what you want.

tc.
Basically .pak (later .pk2/.pk3) is an old school format for archiving game media into a single file. It was used in most ID Software games such as Doom, Quake. It's a very simple format but I was hoping someone already had some code rather than me having to write something from scratch. http://www.gamedev.net/reference/programming/features/pak/
Lee M
Yeah, those are actually just .zip archives. See ZipArchive.
tc.