This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
// an error will cause the entire program to exit
void Sys_Printf (const char *fmt, ...);
-// send text to the console
+// send text to the quake console (and possibly to terminal)
+
+void Sys_Print(const char *text);
+// (may) output text to terminal which launched program
void Sys_Quit (void);
Host_Shutdown ();
exit (1);
+}
+void Sys_Print(const char *text)
+{
+ printf("%s", text);
}
double Sys_DoubleTime (void)
'x', 'y', 'z', '{', '|', '}', '~', '<'
};
-//#ifdef WIN32
-//extern HANDLE houtput;
-//#endif
#define MAX_PRINT_MSG 16384
void Sys_Printf (const char *fmt, ...)
struct tm *local = NULL;
unsigned char *p;
-//#ifdef WIN32
-// DWORD dummy;
-//#endif
va_start (argptr, fmt);
vsnprintf (start, sizeof(start), fmt, argptr);
final[MAX_PRINT_MSG - 1] = 0;
for (p = (unsigned char *) final;*p; p++)
*p = qfont_table[*p];
-//#ifdef WIN32
-// if (cls.state == ca_dedicated)
-// WriteFile(houtput, final, strlen (final), &dummy, NULL);
-//#else
- printf("%s", final);
-//#endif
+ Sys_Print(final);
}
exit (0);
}
+void Sys_Print(const char *text)
+{
+ DWORD dummy;
+ extern HANDLE houtput;
+ if (cls.state == ca_dedicated)
+ WriteFile(houtput, text, strlen (text), &dummy, NULL);
+}
/*
================