I like this.
Yes, there is: The PhysicsFS add-on but I have no idea how to use it. I suppose PhysicsFS is a library you install in your Windows/Linux system then it calls it or something.
I'm used to the "old" API (Allegro 4.x) and I'm still a bit confused with some parts of the new one (5.x), it is mostly designed as a state machine now but the file IO looks like a state machine mixed with other stuff. Not sure how to use it.
Yes, I know about that IFF limitation, but I have two solutions:
- Include a chunk at the begginning with the map of the file telling where each file is, in a similar way Ken Silverman's GRP files does.
- Scan the whole file when opening building the map in memory.
It is a standard container file format developed by Electronic Arts and Commodore/Amiga inspired by some old Apple MacOS API widely used by AmigaOS. It's still in use by a few formats like Apple's AIFF and Microsoft's WAV (this one using a modified version called RIFF though). PNG file format uses a similar approach too.
You can read the complete description in this paper.
Thanks for sharing this.
Didn't know ZIP files allows random access to files. May be I'll rethink this.
Bookmarks