if (sys_nostdout)
return;
- if (timestamps.value)
+ if (timestamps.integer)
{
mytime = time (NULL);
local = localtime (&mytime);
//#endif
}
-void Sys_Shared_Init(void)
+char engineversion[40];
+
+void Sys_Shared_EarlyInit(void)
{
- if (COM_CheckParm("-nostdout"))
- sys_nostdout = 1;
- else
- {
#if defined(__linux__)
- fcntl(0, F_SETFL, fcntl (0, F_GETFL, 0) | FNDELAY);
- printf ("DarkPlaces Linux GL %.2f build %3i", (float) VERSION, buildnumber);
+ sprintf (engineversion, "%s Linux GL build %s", gamename, buildstring);
#elif defined(WIN32)
- printf ("DarkPlaces Windows GL %.2f build %3i", (float) VERSION, buildnumber);
+ sprintf (engineversion, "%s Windows GL build %s", gamename, buildstring);
#else
- printf ("DarkPlaces Unknown GL %.2f build %3i", (float) VERSION, buildnumber);
+ sprintf (engineversion, "%s Unknown GL build %s", gamename, buildstring);
#endif
- }
+
+ if (COM_CheckParm("-nostdout"))
+ sys_nostdout = 1;
+ else
+ printf("%s\n", engineversion);
+}
+
+void Sys_Shared_LateInit(void)
+{
}