]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - console.h
Added a "log_file" cvar to control the log file name (default: "" which means no...
[xonotic/darkplaces.git] / console.h
index 9042ac069b8d2b4768215eac0e1bf6e192136966..9f4151822f246d958b56b7c0e59201f8a463f5b6 100644 (file)
--- a/console.h
+++ b/console.h
@@ -8,7 +8,7 @@ of the License, or (at your option) any later version.
 
 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.
 
@@ -28,15 +28,16 @@ extern int con_totallines;
 extern int con_backscroll;
 extern qboolean con_initialized;
 extern qbyte *con_chars;
-extern int con_notifylines;            // scan lines to clear for notify lines
 
 void Con_CheckResize (void);
 void Con_Init (void);
 void Con_DrawConsole (int lines);
-void Con_Print (const char *txt);
-void Con_Printf (const char *fmt, ...);
-void Con_DPrintf (const char *fmt, ...);
-void Con_SafePrintf (const char *fmt, ...);
+void Con_Print(const char *txt);
+void Con_Printf(const char *fmt, ...);
+void Con_DPrint(const char *msg);
+void Con_DPrintf(const char *fmt, ...);
+void Con_SafePrint(const char *msg);
+void Con_SafePrintf(const char *fmt, ...);
 void Con_Clear_f (void);
 void Con_DrawNotify (void);
 void Con_ClearNotify (void);
@@ -52,5 +53,15 @@ void Con_CompleteCommandLine(void);
 // formatted in columns on the console
 void Con_DisplayList(const char **list);
 
+
+//
+// log
+//
+void Log_Init (void);
+void Log_Start (void);
+// Log_Print and Log_Printf can be used as soon as the FS initialization is done
+void Log_Print(const char *logfilename, const char *msg);
+void Log_Printf(const char *logfilename, const char *fmt, ...);
+
 #endif