mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 07:12:07 +00:00
Remove unused function Sys_Printf()
This commit is contained in:
parent
1a748adaa5
commit
74e6993d6f
1 changed files with 1 additions and 27 deletions
|
@ -227,32 +227,6 @@ Sys_ConsoleOutput ( char *string )
|
|||
fputs(string, stdout);
|
||||
}
|
||||
|
||||
void
|
||||
Sys_Printf ( char *fmt, ... )
|
||||
{
|
||||
va_list argptr;
|
||||
char text [ 1024 ];
|
||||
unsigned char *p;
|
||||
|
||||
va_start( argptr, fmt );
|
||||
vsnprintf( text, 1024, fmt, argptr );
|
||||
va_end( argptr );
|
||||
|
||||
for (p = (unsigned char *)text; *p; p++)
|
||||
{
|
||||
*p &= 0x7f;
|
||||
|
||||
if ( ( ( *p > 128 ) || ( *p < 32 ) ) && ( *p != 10 ) && ( *p != 13 ) && ( *p != 9 ) )
|
||||
{
|
||||
printf( "[%02x]", *p );
|
||||
}
|
||||
else
|
||||
{
|
||||
putc( *p, stdout );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
Sys_Quit(void)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue