]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
added con_completion_playdemo/timedemo/exec cvars, this enables
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 7 Apr 2008 19:16:13 +0000 (19:16 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 7 Apr 2008 19:16:13 +0000 (19:16 +0000)
completion of playdemo, timedemo, and exec commands

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8245 d7cf8633-e32d-0410-b094-e92efae38249

console.c

index d101cea996c57bad254423317dbceca40138c86c..126cd3a8a53d2fdd16916708b6ed5dec864e4c20 100644 (file)
--- 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");