[SDL] Loading Resources on Windows
Micah Brening
micah.brening at gmail.com
Fri Jan 4 11:47:05 PST 2008
Christian Walther <cwalther <at> gmx.ch> writes:
> Just try it: open a command prompt, cd to some arbitrary directory, drag
> the application into the window to enter its path, and press return - if
> it works, no matter what directory you were in, then good (and I'm wrong).
>
> -Christian
>
Sorry, yes, I was talking to you, Christian. I should have mentioned that.
Command Prompt idea: naturally, it crashed, no error given. The problem I have
with hard coding the full path into the EXE is that people will install it to
different places.
So, the way I see it, I have two options. Have the installer plop a .ini file
with the path used in the install, and the exe pull it and use it. Or, as was
posted earlier, use Physfs (1.1.0 since 1.1.1 uses cmake)
Physfs, as long as it works the way I need, seems the better way to go.
But the test you had me do will be a way I continue to test my software to
ensure stability and flexibility. Thank you.
-Micah
More information about the SDL
mailing list