[SDL] runtime data path
David MacCormack
djm at maccormack.net
Fri Feb 1 16:21:30 PST 2008
On Thu, 31 Jan 2008, matt hull wrote:
> i am trying to figure out how to code media paths in sdl. on each system it
> would be installed into a different folder, and a user should be able to run
> the application with or without installing. i have spent a few hours
> googling and nothing seems to come up. so i picked an open source project
> and looked at it. i found that supertux handles it quit well. it tries the
> current working dir then the install dir. this seems to work well except
> that the code is not clean, it has ifdef in it for windows or unix.
>
fnkdat is another option. I think that you'll find that most
solutions to this problem will have #ifdefs for various platforms because
handling this varies greatly from platform to platform.
http://www.maccormack.net/~djm/fnkdat/
Dave
--
David MacCormack
djm at maccormack.net
More information about the SDL
mailing list