[SDL] embedding resources inside your program
Pierre Phaneuf
pphaneuf at gmail.com
Thu Apr 24 12:19:31 PDT 2008
On Thu, Apr 24, 2008 at 3:00 PM, <neil at cloudsprinter.com> wrote:
> sounds that get played randomly ) so i think with that amount of data having
> everything in the exe isnt really a great idea, might still do it, not like a
> 15 meg exe is exactly big these days..
Well, the important thing is the overall disk footprint, no? A 1 meg
executable with a 14 megs data file or a 15 megs stand-alone
executable is pretty much the same, but some people prefer a single
file for easy of deployment purpose.
> and while i have an audience, i am also thinking of having skins for the game,
> which would be a zip file containing all the sounds and gfx files, zips stored
> in a directory of which the contents are read on program loading, any problems
> with the contents of the folder or contents of the zip it just defaults to the
> original that are built in the exe file.
PhysFS could be interesting for that (http://icculus.org/physfs/).
Never used it myself, but Ryan knows his stuff, usually. ;-)
--
http://pphaneuf.livejournal.com/
More information about the SDL
mailing list