]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sys_linux.c
faster number to edict lookup (sv.edictstable) and faster edict to number lookup...
[xonotic/darkplaces.git] / sys_linux.c
index 0dc1ce9e61ae8da4f4dc1263115945178c7147b2..abe5a45476c168fbf986f30001ca8860439bd844 100644 (file)
 
 #include "quakedef.h"
 
-char *basedir = ".";
-#if CACHEENABLE
-char *cachedir = "/tmp";
-#endif
-
 // =======================================================================
 // General routines
 // =======================================================================
@@ -144,17 +139,14 @@ void Sys_Sleep(void)
        usleep(1);
 }
 
-int main (int c, char **v)
+int main (int argc, const char **argv)
 {
        double frameoldtime, framenewtime;
 
        signal(SIGFPE, SIG_IGN);
 
-       memset(&host_parms, 0, sizeof(host_parms));
-
-       host_parms.argc = c;
-       host_parms.argv = v;
-       host_parms.basedir = basedir;
+       com_argc = argc;
+       com_argv = argv;
 
        fcntl(0, F_SETFL, fcntl (0, F_GETFL, 0) | FNDELAY);