From: havoc Date: Mon, 7 Apr 2008 19:16:13 +0000 (+0000) Subject: added con_completion_playdemo/timedemo/exec cvars, this enables X-Git-Tag: xonotic-v0.1.0preview~2284 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=acfe4952fa061ebfd5e7a57c379e27400ce6f82d;p=xonotic%2Fdarkplaces.git added con_completion_playdemo/timedemo/exec cvars, this enables completion of playdemo, timedemo, and exec commands git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8245 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/console.c b/console.c index d101cea9..126cd3a8 100644 --- a/console.c +++ b/console.c @@ -96,6 +96,10 @@ cvar_t con_nickcompletion_flags = {CVAR_SAVE, "con_nickcompletion_flags", "11", #define NICKS_ALPHANUMERICS_ONLY 8 #define NICKS_NO_SPACES 16 +cvar_t con_completion_playdemo = {CVAR_SAVE, "con_completion_playdemo", "*.dem"}; +cvar_t con_completion_timedemo = {CVAR_SAVE, "con_completion_timedemo", "*.dem"}; +cvar_t con_completion_exec = {CVAR_SAVE, "con_completion_exec", "*.cfg"}; + int con_linewidth; int con_vislines; @@ -544,6 +548,10 @@ void Con_Init (void) Cvar_RegisterVariable (&con_nickcompletion); Cvar_RegisterVariable (&con_nickcompletion_flags); + Cvar_RegisterVariable (&con_completion_playdemo); // *.dem + Cvar_RegisterVariable (&con_completion_timedemo); // *.dem + Cvar_RegisterVariable (&con_completion_exec); // *.cfg + // register our commands Cmd_AddCommand ("toggleconsole", Con_ToggleConsole_f, "opens or closes the console"); Cmd_AddCommand ("messagemode", Con_MessageMode_f, "input a chat message to say to everyone");