Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » Physfs - Loading protected .zips

This thread is locked; no one can reply to it. rss feed Print
Physfs - Loading protected .zips
Addison Elliott
Member #12,394
November 2010

I'm creating a game that uses Allegro. I started out by a way of packaging the graphics/music/etc, so I went to zlib. I got this working fine, and it could load all files with a password on it. Shortly after, I found out that Allegro had something similar to this and thought if i'm using Allegro for rendering the game, why not for loading? I have googled around for some guides on how I could do this and i'm not getting much help.
Would any of you guys know an easy way to load zip files with a protected password on there in Allegro5?

Evert
Member #794
November 2000
avatar

I think this question came up earlier (a forum search should unearth the relevant thread). From what I recall though, PhysFS doesn't support loading password-protected ZIP files... so this doesn't work out of the box, meaning there is no easy way to do it.

Addison Elliott
Member #12,394
November 2010

Ahh okay, thanks. That probably saved me a few hours of searching to find that out. I will just stick with minizip then.

GullRaDriel
Member #3,861
September 2003
avatar

"Code is like shit - it only smells if it is not yours"
Allegro Wiki, full of examples and articles !!

Go to: