aboutsummaryrefslogtreecommitdiff
path: root/games/ioquake3/files/patch-code__unix__unix_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'games/ioquake3/files/patch-code__unix__unix_main.c')
-rw-r--r--games/ioquake3/files/patch-code__unix__unix_main.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/games/ioquake3/files/patch-code__unix__unix_main.c b/games/ioquake3/files/patch-code__unix__unix_main.c
new file mode 100644
index 000000000000..cd61c56a765f
--- /dev/null
+++ b/games/ioquake3/files/patch-code__unix__unix_main.c
@@ -0,0 +1,31 @@
+--- ./code/unix/unix_main.c.orig Sun Feb 26 18:22:12 2006
++++ ./code/unix/unix_main.c Wed Jun 7 19:34:25 2006
+@@ -774,6 +774,7 @@
+ char curpath[MAX_OSPATH];
+ char fname[MAX_OSPATH];
+ char *basepath;
++ char *libpath;
+ char *homepath;
+ char *pwdpath;
+ char *cdpath;
+@@ -789,14 +790,19 @@
+ // TODO: use fs_searchpaths from files.c
+ pwdpath = Sys_Cwd();
+ basepath = Cvar_VariableString( "fs_basepath" );
++ libpath = LIBDIR;
+ homepath = Cvar_VariableString( "fs_homepath" );
+ cdpath = Cvar_VariableString( "fs_cdpath" );
+ gamedir = Cvar_VariableString( "fs_game" );
+
+- libHandle = try_dlopen(pwdpath, gamedir, fname, fqpath);
++ if(!libHandle && homepath)
++ libHandle = try_dlopen(pwdpath, gamedir, fname, fqpath);
+
+ if(!libHandle && homepath)
+ libHandle = try_dlopen(homepath, gamedir, fname, fqpath);
++
++ if(!libHandle && basepath)
++ libHandle = try_dlopen(libpath, gamedir, fname, fqpath);
+
+ if(!libHandle && basepath)
+ libHandle = try_dlopen(basepath, gamedir, fname, fqpath);