Don't search system directories for renderer lib
This commit is contained in:
parent
5a1449bd51
commit
404fe4e6e0
5 changed files with 10 additions and 8 deletions
|
@ -48,4 +48,4 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
# define Sys_LibraryError() SDL_GetError()
|
||||
#endif
|
||||
|
||||
void * QDECL Sys_LoadDll(const char *name);
|
||||
void * QDECL Sys_LoadDll(const char *name, qboolean useSystemLib);
|
||||
|
|
|
@ -417,12 +417,14 @@ from executable path, then fs_basepath.
|
|||
=================
|
||||
*/
|
||||
|
||||
void *Sys_LoadDll(const char *name)
|
||||
void *Sys_LoadDll(const char *name, qboolean useSystemLib)
|
||||
{
|
||||
void *dllhandle;
|
||||
|
||||
Com_Printf("Try loading \"%s\"...\n", name);
|
||||
if(!(dllhandle = Sys_LoadLibrary(name)))
|
||||
if(useSystemLib)
|
||||
Com_Printf("Try loading \"%s\"...\n", name);
|
||||
|
||||
if(!useSystemLib || !(dllhandle = Sys_LoadLibrary(name)))
|
||||
{
|
||||
const char *topDir;
|
||||
char libPath[MAX_OSPATH];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue