Move Sys_Init after Cvar_Init.

This commit is contained in:
Marcus Sundberg 2000-05-20 22:13:45 +00:00
parent cba34a7572
commit f1edd57186
4 changed files with 5 additions and 11 deletions

View file

@ -1664,6 +1664,7 @@ void Host_Init (quakeparms_t *parms)
Memory_Init (parms->membase, parms->memsize);
Cvar_Init ();
Sys_Init();
Cbuf_Init ();
Cmd_Init ();

View file

@ -244,8 +244,6 @@ int main (int c, char **v)
// caching is disabled by default, use -cachedir to enable
// parms.cachedir = cachedir;
Sys_Init();
noconinput = COM_CheckParm("-noconinput");
if (!noconinput)
fcntl(0, F_SETFL, fcntl (0, F_GETFL, 0) | FNDELAY);

View file

@ -74,10 +74,6 @@ qboolean WinNT;
HWND hwnd_dialog; // startup dialog box
static double pfreq;
static double curtime = 0.0;
static double lastcurtime = 0.0;
static int lowshift;
static HANDLE hinput, houtput;
HANDLE qwclsemaphore;
@ -284,8 +280,9 @@ char *Sys_ConsoleInput (void)
static int len;
INPUT_RECORD recs[1024];
// int count;
int i, dummy;
int ch, numread, numevents;
int i;
int ch;
DWORD numread, numevents, dummy;
HANDLE th;
char *clipText, *textCopied;
@ -547,8 +544,6 @@ int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLin
if (!tevent)
Sys_Error ("Couldn't create event");
Sys_Init ();
// because sound is off until we become active
S_BlockSound ();

View file

@ -1839,8 +1839,8 @@ void SV_Init (quakeparms_t *parms)
SV_Error ("Only %4.1f megs of memory reported, can't execute game", parms->memsize / (float)0x100000);
Memory_Init (parms->membase, parms->memsize);
Sys_Init ();
Cvar_Init ();
Sys_Init ();
Cbuf_Init ();
Cmd_Init ();