Content bundling
Monkey Targets Forums/Desktop/Content bundling
| ||
Hi all, I'd like to be able to bundle all media in a .pak file (or something similar) or embed the media in the actual EXE ala BlitzMax. Does anyone have any experience with this, could it be possible with a GLFW project? Ta! -Chris |
| ||
Does anyone have the know how to easily implement something like this? http://icculus.org/physfs/ I'm not interested in encryption or anything, just being able to bundle the data directory into a zip file and potentially allow users to specify alternative zip files should they want, via the command line. In a directory I have... n2.exe n2.zip alt.zip c:\directory\n2.exe will load resources from n2.zip c:\directory\n2.exe --data-file=alt.zip will load resources from alt.zip |
| ||
UPX http://upx.sourceforge.net/ as for implementing something like gzip or wouldn't be terribly difficult: http://stackoverflow.com/questions/10440113/simple-way-to-unzip-a-zip-file-using-zlib?rq=1 libtar does individual files: http://stackoverflow.com/questions/1553653/how-to-untar-file-in-memory-c-programming another one-ring-to-rule-all library: http://www.libarchive.org/ |
| ||
Thanks Adam, from what I understand having messed around with it ages ago, UPX just compresses a file, i didn't think it could used to bundle files together? Is there any particular reason why you'd go with libtar over anything else? |