X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=console.c;h=34ff0a488668358da636c290b88211bd62927d19;hb=a95a5849f03a278febc784cf588b733fb24f5e86;hp=21148248e1ccaf21ec9cc676e164f70877ca4ff1;hpb=f1ad1e170799ce0b162b1738628006516a36d902;p=xonotic%2Fdarkplaces.git diff --git a/console.c b/console.c index 21148248..34ff0a48 100644 --- a/console.c +++ b/console.c @@ -201,20 +201,13 @@ void Con_CheckResize (void) } -/* -================ -Con_Init -================ -*/ -void Con_Init (void) +void Con_InitLogging (void) { #define MAXGAMEDIRLEN 1000 char temp[MAXGAMEDIRLEN+1]; char *t2 = "/qconsole.log"; - Cvar_RegisterVariable(&logfile); con_debuglog = COM_CheckParm("-condebug"); - if (con_debuglog) { if (strlen (fs_gamedir) < (MAXGAMEDIRLEN - strlen (t2))) @@ -224,6 +217,16 @@ void Con_Init (void) } logfile.integer = 1; } +} + +/* +================ +Con_Init +================ +*/ +void Con_Init (void) +{ + Cvar_RegisterVariable(&logfile); console_mempool = Mem_AllocPool("console"); con_text = Mem_Alloc(console_mempool, CON_TEXTSIZE);