[SDL] embedding resources inside your program
neil at cloudsprinter.com
neil at cloudsprinter.com
Thu Apr 24 12:00:23 PDT 2008
Quoting Pierre Phaneuf <pphaneuf at gmail.com>:
> I read this question in the archive a little while ago, and I remember
> a funny hack from, uh, a very long time ago,
i belive this was probably me going on about this ;) most things i was
freaking
people out with was having an changable part of the exe so new highscores are
kept, eventually i decided to hold detailed high score type info and used
sqlite3, so i have the exe file and a highscore dtatabse file
my music man has given me about 10 meg of sound files ( i decided that
sometimes
the same sound isnt the same sound, so for one sound there are actually four
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..
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.
More information about the SDL
mailing list