Saving to a zip

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Catprog
Posts: 164
Joined: Wed Jan 31, 2007 9:07 am
Contact:

Saving to a zip

Post by Catprog »

Is there a way to write to a zip file under irrlicht?
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

If you are asking if there is a way to get an IWriteFile for a file in a zip archive, then no. That said, the zlib library is part of Irrlicht though, so you can use that if you care to do so.

Travis
Catprog
Posts: 164
Joined: Wed Jan 31, 2007 9:07 am
Contact:

Post by Catprog »

Ok then.
swesoulc
Posts: 17
Joined: Tue Apr 03, 2007 10:05 am

Post by swesoulc »

vitek a question please
zlib should then work as a .zip for irrlicht? meaning I can read zlib with addZipFileArchive
checking around I can't really see that irrlicht has a compressor for it
do I have to add the zlib header and include myself to gain access to a compressor or is the function just buried somewhere?
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

I don't understand your question. zlib is a library for reading and writing zip files. The Irrlicht file system uses zlib internally to decompress files that are compressed inside a zip file.

As I mentioned in my original post, Irrlicht does not provide a way to write zip files. There is no 'compressor' provided for use with Irrlicht.

If you want to use the zlib library, you need to include the zlib.h and write your code to use it. The zlib library is compiled directly into the Irrlicht library, so you will need to either add your code to the Irrlicht.dll or to write your new code using the external zlib.

Travis
swesoulc
Posts: 17
Joined: Tue Apr 03, 2007 10:05 am

Post by swesoulc »

although you didn't seem to understand you answered purrrrfectly travis
those short lines answered better then the entire zlib website
thanks mate
Post Reply