aboutsummaryrefslogtreecommitdiffstats
path: root/code/client/cl_console.c
diff options
context:
space:
mode:
authortma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2008-09-16 21:05:22 +0000
committertma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2008-09-16 21:05:22 +0000
commit660be5cc7d3989740b4e6fbd8ed8b1d9c46ebd20 (patch)
treec609227c4de7d3ea10310714c3262d58665b3ffa /code/client/cl_console.c
parent134e4522a3a9eb3f3e2f8e3646eb3d3999d49694 (diff)
downloadioquake3-aero-660be5cc7d3989740b4e6fbd8ed8b1d9c46ebd20.tar.gz
ioquake3-aero-660be5cc7d3989740b4e6fbd8ed8b1d9c46ebd20.zip
* Move command argument completion from being hard coded to being associated
with the individual commands to be completed git-svn-id: svn://svn.icculus.org/quake3/trunk@1472 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/client/cl_console.c')
-rw-r--r--code/client/cl_console.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/code/client/cl_console.c b/code/client/cl_console.c
index 5aad766..80e4e43 100644
--- a/code/client/cl_console.c
+++ b/code/client/cl_console.c
@@ -302,6 +302,17 @@ void Con_CheckResize (void)
con.display = con.current;
}
+/*
+==================
+Cmd_CompleteTxtName
+==================
+*/
+void Cmd_CompleteTxtName( char *args, int argNum ) {
+ if( argNum == 2 ) {
+ Field_CompleteFilename( "", "txt", qfalse );
+ }
+}
+
/*
================
@@ -329,6 +340,7 @@ void Con_Init (void) {
Cmd_AddCommand ("messagemode4", Con_MessageMode4_f);
Cmd_AddCommand ("clear", Con_Clear_f);
Cmd_AddCommand ("condump", Con_Dump_f);
+ Cmd_SetCommandCompletionFunc( "condump", Cmd_CompleteTxtName );
}