public static void Init()
{
_DebugLog = (Common.CheckParm("-condebug") > 0);
if (_DebugLog)
{
string path = Path.Combine(Common.GameDir, LOG_FILE_NAME);
if (File.Exists(path))
File.Delete(path);
_Log = new FileStream(path, FileMode.Create, FileAccess.Write, FileShare.Read);
}
_LineWidth = -1;
CheckResize();
Con.Print("Console initialized.\n");
//
// register our commands
//
if (_NotifyTime == null)
{
_NotifyTime = new Cvar("con_notifytime", "3");
}
Cmd.Add("toggleconsole", ToggleConsole_f);
Cmd.Add("messagemode", MessageMode_f);
Cmd.Add("messagemode2", MessageMode2_f);
Cmd.Add("clear", Clear_f);
_IsInitialized = true;
}