'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W',
'X', 'Y', 'Z', '[', '\\', ']', '^', '_',
'`', 'a', 'b', 'c', 'd', 'e', 'f', 'g',
- 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o',
+ 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o',
'p', 'q', 'r', 's', 't', 'u', 'v', 'w',
'x', 'y', 'z', '{', '|', '}', '~', '<'
};
#endif
#define MAX_PRINT_MSG 16384
-void Sys_Printf (char *fmt, ...)
+void Sys_Printf (const char *fmt, ...)
{
va_list argptr;
char start[MAX_PRINT_MSG]; // String we started with
#endif
va_start (argptr, fmt);
-#ifdef HAVE_VSNPRINTF
vsnprintf (start, sizeof(start), fmt, argptr);
-#else
- vsprintf (start, fmt, argptr);
-#endif
va_end (argptr);
if (sys_nostdout)
#else
printf("%s", final);
#endif
-// for (p = (unsigned char *) final; *p; p++)
-// putc (qfont_table[*p], stdout);
-//#ifndef WIN32
-// fflush (stdout);
-//#endif
}
-char engineversion[40];
+
+char engineversion[128];
void Sys_Shared_EarlyInit(void)
{
+ const char* os;
+
+ Memory_Init ();
+
+ COM_InitArgv();
+ COM_InitGameType();
+
#if defined(__linux__)
- sprintf (engineversion, "%s Linux GL build %s", gamename, buildstring);
+ os = "Linux";
#elif defined(WIN32)
- sprintf (engineversion, "%s Windows GL build %s", gamename, buildstring);
+ os = "Windows";
#else
- sprintf (engineversion, "%s Unknown GL build %s", gamename, buildstring);
+ os = "Unknown";
#endif
+ snprintf (engineversion, sizeof (engineversion), "%s %s %s", gamename, os, buildstring);
if (COM_CheckParm("-nostdout"))
sys_nostdout = 1;
else
- printf("%s\n", engineversion);
+ Con_Printf("%s\n", engineversion);
}
void Sys_Shared_LateInit(void)
{
}
+