From dc02f5dc33fcbdbf8ab000b27dab807ca62b2942 Mon Sep 17 00:00:00 2001 From: zakk Date: Wed, 31 Aug 2005 17:43:56 +0000 Subject: 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 --- code/unix/unix_main.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'code/unix/unix_main.c') 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; -- cgit v1.2.3