}
-/*
-================
-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)))
}
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);
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
extern int con_notifylines; // scan lines to clear for notify lines
void Con_CheckResize (void);
+void Con_InitLogging (void);
void Con_Init (void);
void Con_DrawConsole (int lines);
void Con_Print (const char *txt);