1 diff -urN quake3.orig/code/sys/sys_main.c quake3/code/sys/sys_main.c
2 --- quake3.orig/code/sys/sys_main.c 2019-07-29 18:40:49.424888973 +0200
3 +++ quake3/code/sys/sys_main.c 2019-07-29 18:51:00.376127397 +0200
7 First try to load library name from system library path,
8 -from executable path, then fs_basepath.
9 +from executable path, QUAKELIBDIR, then fs_basepath.
14 Com_Printf("Skipping trying to load \"%s\" from \"%s\", file name is too long.\n", name, topDir);
17 +#if defined(QUAKELIBDIR)
20 + char libPath[MAX_OSPATH];
23 + len = Com_sprintf(libPath, sizeof(libPath), "%s%c%s", QUAKELIBDIR, PATH_SEP, name);
24 + if(len < sizeof(libPath))
26 + Com_Printf("Trying to load \"%s\" from \"%s\"...\n", name, QUAKELIBDIR);
27 + dllhandle = Sys_LoadLibrary(libPath);
31 + Com_Printf("Skipping trying to load \"%s\" from \"%s\", file name is too long.\n", name, QUAKELIBDIR);
38 const char *basePath = Cvar_VariableString("fs_basepath");