From 9a678a5e63760d4f09d953b5036c59449032137f Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Mon, 27 Aug 2001 18:53:09 +0000 Subject: [PATCH] final eradication of basedir and cachedir --- nq/include/host.h | 2 -- nq/source/sys_null.c | 1 - nq/source/sys_unix.c | 7 ------- nq/source/sys_unixd.c | 5 ----- nq/source/sys_win.c | 3 --- nq/source/sys_wind.c | 2 -- 6 files changed, 20 deletions(-) diff --git a/nq/include/host.h b/nq/include/host.h index 989b3ac29..f7032e0bd 100644 --- a/nq/include/host.h +++ b/nq/include/host.h @@ -36,8 +36,6 @@ extern qboolean noclip_anglehack; typedef struct { - char *basedir; - char *cachedir; // for development over ISDN lines int argc; char **argv; void *membase; diff --git a/nq/source/sys_null.c b/nq/source/sys_null.c index 1305d9d97..7087b626a 100644 --- a/nq/source/sys_null.c +++ b/nq/source/sys_null.c @@ -220,7 +220,6 @@ main (int argc, char **argv) parms.memsize = 8 * 1024 * 1024; parms.membase = malloc (parms.memsize); - parms.basedir = "."; COM_InitArgv (argc, argv); diff --git a/nq/source/sys_unix.c b/nq/source/sys_unix.c index e9b6646fd..81739e829 100644 --- a/nq/source/sys_unix.c +++ b/nq/source/sys_unix.c @@ -59,9 +59,6 @@ qboolean isDedicated; -char *basedir = "."; -char *cachedir = "/tmp"; - cvar_t *sys_linerefresh; cvar_t *timestamps; cvar_t *timeformat; @@ -195,10 +192,6 @@ main (int c, const char *v[]) parms.memsize = (int) (atof (com_argv[j + 1]) * 1024 * 1024); parms.membase = malloc (parms.memsize); - parms.basedir = basedir; - // caching is disabled by default, use -cachedir to enable -// parms.cachedir = cachedir; - fcntl (0, F_SETFL, fcntl (0, F_GETFL, 0) | FNDELAY); Host_Init (&parms); diff --git a/nq/source/sys_unixd.c b/nq/source/sys_unixd.c index cf0f81894..50b03c762 100644 --- a/nq/source/sys_unixd.c +++ b/nq/source/sys_unixd.c @@ -67,9 +67,6 @@ qboolean isDedicated; int nostdout = 0; -char *basedir = "."; -char *cachedir = "/tmp"; - cvar_t *sys_linerefresh; cvar_t *timestamps; cvar_t *timeformat; @@ -312,8 +309,6 @@ main (int argc, char *argv[]) if ((parms.membase = malloc (parms.memsize)) == NULL) Sys_Error ("Can't allocate %d\n", parms.memsize); - parms.basedir = basedir; - fcntl (0, F_SETFL, fcntl (0, F_GETFL, 0) | FNDELAY); printf ("Host_Init\n"); diff --git a/nq/source/sys_win.c b/nq/source/sys_win.c index 38889441f..ca1332783 100644 --- a/nq/source/sys_win.c +++ b/nq/source/sys_win.c @@ -417,9 +417,6 @@ WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, if (cwd[strlen (cwd) - 1] == '/') cwd[strlen (cwd) - 1] = 0; - parms.basedir = cwd; - parms.cachedir = NULL; - parms.argc = 1; argv[0] = empty_string; diff --git a/nq/source/sys_wind.c b/nq/source/sys_wind.c index 3218538e0..379e750be 100644 --- a/nq/source/sys_wind.c +++ b/nq/source/sys_wind.c @@ -277,8 +277,6 @@ main (int argc, char **argv) _getcwd (cwd, sizeof (cwd)); if (cwd[Q_strlen (cwd) - 1] == '\\') cwd[Q_strlen (cwd) - 1] = 0; - parms.basedir = cwd; // "f:/quake"; -// parms.basedir = "f:\\quake"; COM_InitArgv (argc, argv);