I had made a request in the The Development of CEGUI 0.7.x thread requesting an archive based resource provider. Well I eventually got around to writing it myself using zlib and minizip (which is included in zlibs distribution).
I've added a ticket to mantis to see if I can get this class incorporated into CEGUI. Until then, the code has been attached to the ticket and should work as a drop-in replacement for the DefaultResourceProvider in both v0.6 and v0.7 releases; though you will need to download and build/include minizip yourself.
A zip-archive based ResourceProvider for CEGUI
Moderators: CEGUI MVP, CEGUI Team
A zip-archive based ResourceProvider for CEGUI
If somebody helps you by replying to your thread, upvote him/her as a thanks! Make sure to include your CEGUI.log and everything you tried when posting! And remember that we are not magicians!
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Re: A zip-archive based ResourceProvider for CEGUI
That's for this. I have not looked at the code yet, but all being well, I can't see any reason we would not add this to the code tree
CE.
CE.
Useful Links: Forum Guidelines | Documentation | Tutorials | HOWTO | Videos | Donate to CEGUI | CEGUI Twitter
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Re: A zip-archive based ResourceProvider for CEGUI
Just to update on this, for anyone not following on mantis: The new resource provider is now in SVN on the branches/v0-7 branch as of rev. 2491. Currently the build of the MinizipResourceProvider is disabled by default, and can be enabled via the usual mechanism depending upon your system of choice.
As part of adding this for v0-7 I have added the required parts of minizip into the CEGUI code tree in order to simplify the dependency situation - these only get compiled in when the MinizipResourceProvider is built. People still on v0-6 who want this should grab the code off of the mantis tacker
And, of course, thanks again to Jamarr for writing this and making it available
CE.
As part of adding this for v0-7 I have added the required parts of minizip into the CEGUI code tree in order to simplify the dependency situation - these only get compiled in when the MinizipResourceProvider is built. People still on v0-6 who want this should grab the code off of the mantis tacker
And, of course, thanks again to Jamarr for writing this and making it available
CE.
Useful Links: Forum Guidelines | Documentation | Tutorials | HOWTO | Videos | Donate to CEGUI | CEGUI Twitter
Re: A zip-archive based ResourceProvider for CEGUI
No problem, glad to see this made it in. This should at least provide an easy option for people who want to use a zip archive to hold their resources without having to write a custom solution.
Now if only there where a tool to generate c++ from the layouts and binary resources that could then be compiled directly into the application. hrm...
Now if only there where a tool to generate c++ from the layouts and binary resources that could then be compiled directly into the application. hrm...
If somebody helps you by replying to your thread, upvote him/her as a thanks! Make sure to include your CEGUI.log and everything you tried when posting! And remember that we are not magicians!
Re: A zip-archive based ResourceProvider for CEGUI
Hey CE, I noticed that void setLoadLocal(bool load = true); is declared in the header, but is not actually defined in the source file (CEGUIMinizipResourceProvider.cpp). Apparently I forgot to implement this function when I submitted the code. A simple addition to the source-file should suffice:
Code: Select all
void MinizipResourceProvider::setLoadLocal(bool load)
{
d_pimpl->d_loadLocal = load;
}
If somebody helps you by replying to your thread, upvote him/her as a thanks! Make sure to include your CEGUI.log and everything you tried when posting! And remember that we are not magicians!
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Re: A zip-archive based ResourceProvider for CEGUI
Thanks, I'll fix this in a moment
CE.
CE.
Useful Links: Forum Guidelines | Documentation | Tutorials | HOWTO | Videos | Donate to CEGUI | CEGUI Twitter
Return to “Bug Reports, Suggestions, Feature Requests”
Who is online
Users browsing this forum: No registered users and 5 guests