mirror of
https://github.com/ioquake/ioq3.git
synced 2025-05-30 00:20:59 +00:00
* Build dedicated server binary on Windows
This commit is contained in:
parent
e56a151a97
commit
54ba74964a
6 changed files with 156 additions and 68 deletions
|
@ -113,7 +113,7 @@ Start the console input subsystem
|
|||
void Sys_ConsoleInputInit( void )
|
||||
{
|
||||
#ifdef DEDICATED
|
||||
TTY_Init( );
|
||||
CON_Init( );
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -127,7 +127,7 @@ Shutdown the console input subsystem
|
|||
void Sys_ConsoleInputShutdown( void )
|
||||
{
|
||||
#ifdef DEDICATED
|
||||
TTY_Shutdown( );
|
||||
CON_Shutdown( );
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -141,7 +141,7 @@ Handle new console input
|
|||
char *Sys_ConsoleInput(void)
|
||||
{
|
||||
#ifdef DEDICATED
|
||||
return TTY_ConsoleInput( );
|
||||
return CON_ConsoleInput( );
|
||||
#endif
|
||||
|
||||
return NULL;
|
||||
|
@ -224,7 +224,7 @@ static struct Q3ToAnsiColorTable_s
|
|||
{
|
||||
char Q3color;
|
||||
char *ANSIcolor;
|
||||
} TTY_colorTable[ ] =
|
||||
} CON_colorTable[ ] =
|
||||
{
|
||||
{ COLOR_BLACK, "30" },
|
||||
{ COLOR_RED, "31" },
|
||||
|
@ -236,8 +236,8 @@ static struct Q3ToAnsiColorTable_s
|
|||
{ COLOR_WHITE, "0" }
|
||||
};
|
||||
|
||||
static int TTY_colorTableSize =
|
||||
sizeof( TTY_colorTable ) / sizeof( TTY_colorTable[ 0 ] );
|
||||
static int CON_colorTableSize =
|
||||
sizeof( CON_colorTable ) / sizeof( CON_colorTable[ 0 ] );
|
||||
|
||||
/*
|
||||
=================
|
||||
|
@ -276,11 +276,11 @@ static void Sys_ANSIColorify( const char *msg, char *buffer, int bufferSize )
|
|||
if( i < msgLength )
|
||||
{
|
||||
escapeCode = NULL;
|
||||
for( j = 0; j < TTY_colorTableSize; j++ )
|
||||
for( j = 0; j < CON_colorTableSize; j++ )
|
||||
{
|
||||
if( msg[ i ] == TTY_colorTable[ j ].Q3color )
|
||||
if( msg[ i ] == CON_colorTable[ j ].Q3color )
|
||||
{
|
||||
escapeCode = TTY_colorTable[ j ].ANSIcolor;
|
||||
escapeCode = CON_colorTable[ j ].ANSIcolor;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -310,7 +310,7 @@ Sys_Print
|
|||
void Sys_Print( const char *msg )
|
||||
{
|
||||
#ifdef DEDICATED
|
||||
TTY_Hide();
|
||||
CON_Hide();
|
||||
#endif
|
||||
|
||||
if( com_ansiColor && com_ansiColor->integer )
|
||||
|
@ -323,7 +323,7 @@ void Sys_Print( const char *msg )
|
|||
fputs(msg, stderr);
|
||||
|
||||
#ifdef DEDICATED
|
||||
TTY_Show();
|
||||
CON_Show();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -338,7 +338,7 @@ void Sys_Error( const char *error, ... )
|
|||
char string[1024];
|
||||
|
||||
#ifdef DEDICATED
|
||||
TTY_Hide();
|
||||
CON_Hide();
|
||||
#endif
|
||||
|
||||
CL_Shutdown ();
|
||||
|
@ -366,13 +366,13 @@ void Sys_Warn( char *warning, ... )
|
|||
va_end (argptr);
|
||||
|
||||
#ifdef DEDICATED
|
||||
TTY_Hide();
|
||||
CON_Hide();
|
||||
#endif
|
||||
|
||||
fprintf(stderr, "Warning: %s", string);
|
||||
|
||||
#ifdef DEDICATED
|
||||
TTY_Show();
|
||||
CON_Show();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue