ok, server now runs without segging on a cvar (with simple testing, anyway.

needs fuller bashing).
This commit is contained in:
Bill Currie 2000-10-31 05:24:34 +00:00
parent 54963bfcb4
commit 3a9eba4f03
7 changed files with 51 additions and 12 deletions

View file

@ -113,16 +113,23 @@ void Sys_Printf (char *fmt, ...)
}
*/
void Sys_Quit (void)
void
Sys_Quit (void)
{
Host_Shutdown();
fcntl (0, F_SETFL, fcntl (0, F_GETFL, 0) & ~O_NONBLOCK);
exit(0);
}
void Sys_Init(void)
void
Sys_Init_Cvars (void)
{
sys_nostdout = Cvar_Get("sys_nostdout", "0", CVAR_NONE, "None");
if (COM_CheckParm("-nostdout")) Cvar_Set(sys_nostdout, "1");
}
void Sys_Init(void)
{
#ifdef USE_INTEL_ASM
Sys_SetFPCW();
#endif
@ -242,7 +249,6 @@ int main (int c, char **v)
noconinput = COM_CheckParm("-noconinput");
if (!noconinput)
fcntl(0, F_SETFL, fcntl (0, F_GETFL, 0) | O_NONBLOCK);
if (COM_CheckParm("-nostdout")) Cvar_Set(sys_nostdout, "1");
Host_Init(&parms);