X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=sys_linux.c;h=45c1e5dbafe15fe35b2cf2a82088b2936fbfd925;hp=c24d4cf05f46a2c0a9a680a4133540c2f311d2c4;hb=9ba80c169d244d56e90f437c512f827953cc1208;hpb=58085f067a994572314e77c72fbe0de1af9f29f7 diff --git a/sys_linux.c b/sys_linux.c index c24d4cf0..45c1e5db 100644 --- a/sys_linux.c +++ b/sys_linux.c @@ -396,7 +396,6 @@ int main (int c, char **v) { double time, oldtime, newtime; - quakeparms_t parms; extern int vcrFile; extern int recording; int j; @@ -406,31 +405,31 @@ int main (int c, char **v) // signal(SIGFPE, floating_point_exception_handler); signal(SIGFPE, SIG_IGN); - memset(&parms, 0, sizeof(parms)); + memset(&host_parms, 0, sizeof(host_parms)); COM_InitArgv(c, v); - parms.argc = com_argc; - parms.argv = com_argv; + host_parms.argc = com_argc; + host_parms.argv = com_argv; - parms.memsize = 24*1024*1024; + host_parms.memsize = 24*1024*1024; j = COM_CheckParm("-mem"); if (j) - parms.memsize = (int) (atof(com_argv[j+1]) * 1024 * 1024); - parms.membase = malloc (parms.memsize); - if (!parms.membase) + host_parms.memsize = (int) (atof(com_argv[j+1]) * 1024 * 1024); + host_parms.membase = malloc (host_parms.memsize); + if (!host_parms.membase) { printf("Unable to allocate heap memory\n"); return 1; } - parms.basedir = basedir; + host_parms.basedir = basedir; // caching is disabled by default, use -cachedir to enable -// parms.cachedir = cachedir; +// host_parms.cachedir = cachedir; fcntl(0, F_SETFL, fcntl (0, F_GETFL, 0) | FNDELAY); - Host_Init(&parms); + Host_Init(); Sys_Init();