]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sys_shared.c
disabled memory clumping, which surprisingly improves memory use, rather than hinders...
[xonotic/darkplaces.git] / sys_shared.c
index 719bce792de45867ada0b19aee1bc1c788c5ed82..307c400b9ae62abf8903387d00d665eff664f0fd 100644 (file)
@@ -79,7 +79,7 @@ void Sys_Printf (char *fmt, ...)
        if (sys_nostdout)
                return;
 
-       if (timestamps.value)
+       if (timestamps.integer)
        {
                mytime = time (NULL);
                local = localtime (&mytime);
@@ -100,26 +100,27 @@ void Sys_Printf (char *fmt, ...)
 #else
        printf("%s", final);
 #endif
-//     for (p = (unsigned char *) final; *p; p++)
-//             putc (qfont_table[*p], stdout);
-//#ifndef WIN32
-//     fflush (stdout);
-//#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)
+{
+}
+