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
This commit is contained in:
1 parent
5bc2c49293
commit
dee436c126
2 files changed
+15
-6
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user