[SDL] SDL_wtf (aka SDL_path) proposal
djm at maccormack.net
Tue Feb 7 12:04:30 PST 2006
On Tue, 7 Feb 2006, Ryan C. Gordon wrote:
>> Actualy, I'd prefer this sort of functionality be added to something like
>> PhysFS. The issue is complicated by the fact that there are lots of types
>> of config paths and requirements, depending on the system and the design
>> of the game config files, but this should take care of the usual case.
> PhysicsFS already does this. :)
> And on some platforms, namely Windows, you have to really jump through some
> serious hoops to get this information (including calling LoadLibrary() on
> system DLLs that don't necessarily exist on Win95, etc).
Exactly. I ran across the exact same problem when I wrote fnkdat
(http://www.maccormack.net/~djm/fnkdat). Win95 (actually, specific
versions of shfolder.dll) doesn't understand the concept of per-user
configurations. You have to load the library and query the DLL to see
if the SHGetFolderPath() function is available, and fallback to a
reasonable default if it does not.
More information about the SDL