static char hosterrorstring2[MAX_INPUTLINE]; // THREAD UNSAFE
static qbool hosterror = false;
va_list argptr;
+ int outfd = sys.outfd;
+
+ // set output to stderr
+ sys.outfd = fileno(stderr);
// turn off rcon redirect if it was active when the crash occurred
// to prevent loops when it is a networking problem
Sys_Error ("Host_Error: recursively entered (original error was: %s new error is: %s)", hosterrorstring2, hosterrorstring1);
hosterror = true;
- strlcpy(hosterrorstring2, hosterrorstring1, sizeof(hosterrorstring2));
+ dp_strlcpy(hosterrorstring2, hosterrorstring1, sizeof(hosterrorstring2));
CL_Parse_DumpPacket();
hosterror = false;
+ // restore configured outfd
+ sys.outfd = outfd;
+
Host_AbortCurrentFrame();
}
char engineversion[128];
-qbool sys_nostdout = false;
static qfile_t *locksession_fh = NULL;
static qbool locksession_run = false;
gl_printcheckerror.integer = 1;gl_printcheckerror.string = "1";
}
-// COMMANDLINEOPTION: Console: -nostdout disables text output to the terminal the game was launched from
- if (Sys_CheckParm("-nostdout"))
- sys_nostdout = 1;
-
// -dedicated is checked in SV_ServerOptions() but that's too late for Cvar_RegisterVariable() to skip all the client-only cvars
if (Sys_CheckParm ("-dedicated") || !cl_available)
cls.state = ca_dedicated;