[SDL] Loading Resources on Windows
Micah Brening
micah.brening at gmail.com
Fri Jan 4 06:50:11 PST 2008
Micah Brening <micah.brening <at> gmail.com> writes:
>
> Hello All,
>
> I'm running into a stupid problem. I have a game written in C with SDL. I'm
> also using SDL_image.
>
> On Linux, it all runs fine. On windows, it runs fine if I execute it from
the
> directory I installed it to. But if I try to use a link (say from the start
> menu) it fails to load the images which are either in the same directory, or
in
> a child directory.
> Thanks!
>
> Micah
>
Ok, so the mystery deepens.
I ran some basic tests. simple initalization, set video mode, and load a png
in the same directory as the executable. That worked. Even with a link in
the start menu.
So now I have two different questions. Is there something that would make the
executable think it was in a different directory than where it really is? And
second, is there a simple way of getting the current working directory that
the executable THINKS it is running from?
Sorry if this is a beginner question.
Thanks for any assistance!
Micah
More information about the SDL
mailing list