Jump to content
  • Advertisement
Sign in to follow this  
Mizipzor

Compression in c++

This topic is 3713 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Im coding a game in which we have assets. To make it a little harder for the enduser to read/modify the files (nothing is ever 100%) weve decided to use some kind of compression routine. We have a datafolder, with subfolders and files. Ideally, we want to package this big folder to something like data.zlib, keeping the folderheirarchy intact. Most of the stuff Ive read on this handles compressing from file to file, or the other way around, decompressing from file to file. We cant do that, since if the regular files were created there would be no point in compressing in the first place. Is "in-memory decompression" what Im looking for here? Is zlib good for this? I find very few tutorials on it thinking of how popular it seems to be. Does it exist any wrappers around zlib to let me compress entire folders? Or does zlib already support it (cant find it in the manual)? Or is there any other lib better for the job?

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!