mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 07:12:07 +00:00
Remove the "nostdout" cvar
The "nostdout" cvar was only existent on unixoid platform and disfunctional. Since the stdout putput is very helpfull when debugging things, just remove it.
This commit is contained in:
parent
229e13e6f4
commit
1a748adaa5
2 changed files with 4 additions and 23 deletions
|
@ -34,8 +34,6 @@
|
|||
#include "../common/header/common.h"
|
||||
#include "header/unix.h"
|
||||
|
||||
cvar_t *nostdout;
|
||||
|
||||
int
|
||||
main ( int argc, char **argv )
|
||||
{
|
||||
|
@ -104,14 +102,8 @@ main ( int argc, char **argv )
|
|||
/* Initialze the game */
|
||||
Qcommon_Init( argc, argv );
|
||||
|
||||
fcntl( 0, F_SETFL, fcntl( 0, F_GETFL, 0 ) | FNDELAY );
|
||||
|
||||
nostdout = Cvar_Get( "nostdout", "0", 0 );
|
||||
|
||||
if ( !nostdout->value )
|
||||
{
|
||||
fcntl( 0, F_SETFL, fcntl( 0, F_GETFL, 0 ) | FNDELAY );
|
||||
}
|
||||
/* Do not delay reads on stdin*/
|
||||
fcntl(fileno(stdin), F_SETFL, fcntl(fileno(stdin), F_GETFL, NULL) | FNDELAY);
|
||||
|
||||
oldtime = Sys_Milliseconds();
|
||||
|
||||
|
|
|
@ -59,7 +59,6 @@ static char findpattern [ MAX_OSPATH ];
|
|||
static DIR *fdir;
|
||||
|
||||
qboolean stdin_active = true;
|
||||
extern cvar_t *nostdout;
|
||||
extern FILE *logfile;
|
||||
|
||||
static qboolean
|
||||
|
@ -225,12 +224,7 @@ Sys_FindClose ( void )
|
|||
void
|
||||
Sys_ConsoleOutput ( char *string )
|
||||
{
|
||||
if ( nostdout && nostdout->value )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
fputs( string, stdout );
|
||||
fputs(string, stdout);
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -244,12 +238,7 @@ Sys_Printf ( char *fmt, ... )
|
|||
vsnprintf( text, 1024, fmt, argptr );
|
||||
va_end( argptr );
|
||||
|
||||
if ( nostdout && nostdout->value )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
for ( p = (unsigned char *) text; *p; p++ )
|
||||
for (p = (unsigned char *)text; *p; p++)
|
||||
{
|
||||
*p &= 0x7f;
|
||||
|
||||
|
|
Loading…
Reference in a new issue