+ // used by everything
+ Memory_Init();
+
+ // initialize console and logging
+ Con_Init();
+
+ // initialize console command/cvar/alias/command execution systems
+ Cmd_Init();
+
+ // parse commandline
+ COM_InitArgv();
+
+ // initialize console window (only used by sys_win.c)
+ Sys_InitConsole();
+
+ // detect gamemode from commandline options or executable name
+ COM_InitGameType();
+
+ // construct a version string for the corner of the console
+#if defined(__linux__)
+ os = "Linux";
+#elif defined(WIN32)
+ os = "Windows";
+#elif defined(__FreeBSD__)
+ os = "FreeBSD";
+#elif defined(__NetBSD__)
+ os = "NetBSD";
+#elif defined(__OpenBSD__)
+ os = "OpenBSD";
+#elif defined(MACOSX)
+ os = "Mac OS X";
+#else
+ os = "Unknown";
+#endif
+ dpsnprintf (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
+ Con_Printf("%s\n", engineversion);
+