if (timestamps.integer)
snprintf(final, sizeof(final), "%s%s", Sys_TimeString(timeformat.string), msg);
else
- strncpy(final, msg, sizeof(final));
+ strlcpy (final, msg, sizeof (final));
// LordHavoc: make sure the string is terminated
final[MAXPRINTMSG-1] = 0;
Sys_Print(msg);
}
+extern qboolean host_shuttingdown;
+void Sys_Quit (void)
+{
+ host_shuttingdown = true;
+ Host_Shutdown();
+ exit(0);
+}
char engineversion[128];
os = "Linux";
#elif defined(WIN32)
os = "Windows";
+#elif defined(__FreeBSD__)
+ os = "FreeBSD";
#elif defined(__NetBSD__)
os = "NetBSD";
#elif defined(__OpenBSD__)
#endif
snprintf (engineversion, sizeof (engineversion), "%s %s %s", gamename, os, buildstring);
+// COMMANDLINEOPTION: Console: -nostdout disables text output to the terminal the game was launched from
if (COM_CheckParm("-nostdout"))
sys_nostdout = 1;
else