[Openal] location of dlls
Stephen DiGregorio
sdigregorio at turbinegames.com
Wed Jul 7 08:41:50 PDT 2004
In the file win\router\alc.cpp in functions FindDllWithMatchingSpecifier
and BuildDeviceSpecifierList the comments first say (778) that
"Directory[1] is the current OpenAL32.dll directory" but later say
(795) "We will search the current directory, the app directory, and then
the system directory."
The call to GetModuleFileName passes 0 for the first param so it
searches the app directory not the directory that the openal32.dll
resides in. this is a problem for me because in dev we keep all dlls in
a separate dir from the executable. Should the call to GetModuleFileName
be changed to pass the results of a call to
GetModuleHandle("openal32.dll") as its first parameter, causing it to
search the directory that contains the current openal32.dll:
GetModuleFileName(GetModuleHandle("openal32.dll"), module, MAX_PATH);
Alternately it could add a next search in the dll folder...
Thanks
-steved
More information about the Openal
mailing list