X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=console.h;h=1849f670dc6f002b85956a9a15e2f6696d10524c;hb=bcba9b797cd43cb41261dbcd1f8583bbc6061f9a;hp=9f4151822f246d958b56b7c0e59201f8a463f5b6;hpb=76fa048af00f95e290d0b90a8009a2a33aa5badd;p=xonotic%2Fdarkplaces.git diff --git a/console.h b/console.h index 9f415182..1849f670 100644 --- a/console.h +++ b/console.h @@ -27,22 +27,26 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. extern int con_totallines; extern int con_backscroll; extern qboolean con_initialized; -extern qbyte *con_chars; + +extern qboolean rcon_redirect; +extern int rcon_redirect_bufferpos; +extern char rcon_redirect_buffer[1400]; void Con_CheckResize (void); void Con_Init (void); +void Con_Init_Commands (void); void Con_DrawConsole (int lines); void Con_Print(const char *txt); -void Con_Printf(const char *fmt, ...); +void Con_Printf(const char *fmt, ...) DP_FUNC_PRINTF(1); 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_DPrintf(const char *fmt, ...) DP_FUNC_PRINTF(1); void Con_Clear_f (void); void Con_DrawNotify (void); void Con_ClearNotify (void); void Con_ToggleConsole_f (void); +qboolean GetMapList (const char *s, char *completedname, int completednamebufferlength); + // wrapper function to attempt to either complete the command line // or to list possible matches grouped by type // (i.e. will display possible variables, aliases, commands @@ -58,10 +62,10 @@ void Con_DisplayList(const char **list); // log // void Log_Init (void); +void Log_Close (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, ...); + +void Log_Printf(const char *logfilename, const char *fmt, ...) DP_FUNC_PRINTF(2); #endif