aboutsummaryrefslogtreecommitdiffstats
path: root/code/sys/sys_main.c
diff options
context:
space:
mode:
authortma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2007-09-06 20:31:30 +0000
committertma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2007-09-06 20:31:30 +0000
commit4d72acef0743f75a260b22a41f4d474f064d15e5 (patch)
tree01c192dfa1a1efc2137285935845e7f475e3ecd9 /code/sys/sys_main.c
parent4e64b0a1b82badbf25bb32bd96290f96668c2290 (diff)
downloadioquake3-aero-4d72acef0743f75a260b22a41f4d474f064d15e5.tar.gz
ioquake3-aero-4d72acef0743f75a260b22a41f4d474f064d15e5.zip
* Build dedicated server binary on Windows
git-svn-id: svn://svn.icculus.org/quake3/trunk@1169 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/sys/sys_main.c')
-rw-r--r--code/sys/sys_main.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/code/sys/sys_main.c b/code/sys/sys_main.c
index c73c2e4..7ecbd2e 100644
--- a/code/sys/sys_main.c
+++ b/code/sys/sys_main.c
@@ -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
}