aboutsummaryrefslogtreecommitdiffstats
path: root/code/unix/unix_main.c
diff options
context:
space:
mode:
authorzakk <zakk@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-08-31 17:43:56 +0000
committerzakk <zakk@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-08-31 17:43:56 +0000
commitdc02f5dc33fcbdbf8ab000b27dab807ca62b2942 (patch)
tree06e25a0afd8249050bc8a4cb1dd289c303265b66 /code/unix/unix_main.c
parentc434a6bac4189dc6195d83869003d71c55d4ba12 (diff)
downloadioquake3-aero-dc02f5dc33fcbdbf8ab000b27dab807ca62b2942.tar.gz
ioquake3-aero-dc02f5dc33fcbdbf8ab000b27dab807ca62b2942.zip
First patch from vapier for easier packaging:
it'd make it easier on people packaging up quake3 if we could set system paths for the baseq3 dir and if the makefile would respect things like CC/CXX from the build env git-svn-id: svn://svn.icculus.org/quake3/trunk@47 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/unix/unix_main.c')
-rw-r--r--code/unix/unix_main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/code/unix/unix_main.c b/code/unix/unix_main.c
index 9e15e0e..ebf4684 100644
--- a/code/unix/unix_main.c
+++ b/code/unix/unix_main.c
@@ -1246,6 +1246,10 @@ void Sys_ParseArgs( int argc, char* argv[] ) {
}
}
+#ifndef DEFAULT_BASEDIR
+# define DEFAULT_BASEDIR Sys_Cwd()
+#endif
+
#include "../client/client.h"
extern clientStatic_t cls;
@@ -1266,6 +1270,8 @@ int main ( int argc, char* argv[] )
strncat(cdpath, argv[0], sizeof(cdpath)-1);
Sys_SetDefaultCDPath(dirname(cdpath));
+ Sys_SetDefaultInstallPath(DEFAULT_BASEDIR);
+
// merge the command line, this is kinda silly
for (len = 1, i = 1; i < argc; i++)
len += strlen(argv[i]) + 1;