mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-18 06:51:47 +00:00
final eradication of basedir and cachedir
This commit is contained in:
parent
eb7982fa26
commit
9a678a5e63
6 changed files with 0 additions and 20 deletions
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue