mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-10 14:52:08 +00:00
Added Cmd_CmdList_f()
This commit is contained in:
parent
440b2aec18
commit
0cd42f8b1d
1 changed files with 14 additions and 0 deletions
14
source/cmd.c
14
source/cmd.c
|
@ -685,6 +685,19 @@ int Cmd_CheckParm (char *parm)
|
|||
return 0;
|
||||
}
|
||||
|
||||
void Cmd_CmdList_f (void)
|
||||
{
|
||||
cmd_function_t *cmd;
|
||||
int i;
|
||||
|
||||
for (cmd=cmd_functions, i=0 ; cmd ; cmd=cmd->next, i++)
|
||||
{
|
||||
Con_Printf("%s\n", cmd->name);
|
||||
}
|
||||
|
||||
Con_Printf ("------------\n%d commands\n", i);
|
||||
}
|
||||
|
||||
/*
|
||||
============
|
||||
Cmd_Init
|
||||
|
@ -700,5 +713,6 @@ void Cmd_Init (void)
|
|||
Cmd_AddCommand ("echo",Cmd_Echo_f);
|
||||
Cmd_AddCommand ("alias",Cmd_Alias_f);
|
||||
Cmd_AddCommand ("wait", Cmd_Wait_f);
|
||||
Cmd_AddCommand ("cmdlist", Cmd_CmdList_f);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue