mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2025-03-15 05:20:43 +00:00
Renamed "help" command to "menu_help".
Renamed "cvarhelp" to "help" Improved the new "help" command.
This commit is contained in:
parent
b5c3300cf3
commit
0f15bbd803
3 changed files with 8 additions and 5 deletions
|
@ -42,6 +42,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
cvar_t *cvar_vars;
|
||||
char *cvar_null_string = "";
|
||||
|
||||
extern void M_Menu_Help_f (void);
|
||||
|
||||
/*
|
||||
============
|
||||
Cvar_FindVar
|
||||
|
@ -273,14 +275,15 @@ void Cvar_Help_f (void)
|
|||
|
||||
if (Cmd_Argc() != 2)
|
||||
{
|
||||
Con_Printf ("usage: cvarhelp <cvar>\n");
|
||||
Con_Printf ("usage: help <cvar>\n");
|
||||
return;
|
||||
}
|
||||
|
||||
cvar_name = Cmd_Argv (1);
|
||||
if((var = Cvar_FindVar(cvar_name)) != NULL)
|
||||
{
|
||||
Con_Printf ("%s\n",var->description);
|
||||
Con_Printf ("description: %s\nvalue: %s\n",var->description,
|
||||
var->string);
|
||||
return;
|
||||
}
|
||||
Con_Printf ("variable not found\n");
|
||||
|
@ -289,7 +292,7 @@ void Cvar_Help_f (void)
|
|||
void Cvar_Init()
|
||||
{
|
||||
Cmd_AddCommand ("set", Cvar_Set_f);
|
||||
Cmd_AddCommand ("cvarhelp",Cvar_Help_f);
|
||||
Cmd_AddCommand ("help",Cvar_Help_f);
|
||||
}
|
||||
|
||||
void Cvar_Shutdown (void)
|
||||
|
|
|
@ -1173,7 +1173,7 @@ void M_Init (void)
|
|||
Cmd_AddCommand ("menu_options", M_Menu_Options_f);
|
||||
Cmd_AddCommand ("menu_keys", M_Menu_Keys_f);
|
||||
Cmd_AddCommand ("menu_video", M_Menu_Video_f);
|
||||
Cmd_AddCommand ("help", M_Menu_Help_f);
|
||||
Cmd_AddCommand ("menu_help", M_Menu_Help_f);
|
||||
Cmd_AddCommand ("menu_quit", M_Menu_Quit_f);
|
||||
}
|
||||
|
||||
|
|
|
@ -3116,7 +3116,7 @@ void M_Init (void)
|
|||
Cmd_AddCommand ("menu_options", M_Menu_Options_f);
|
||||
Cmd_AddCommand ("menu_keys", M_Menu_Keys_f);
|
||||
Cmd_AddCommand ("menu_video", M_Menu_Video_f);
|
||||
Cmd_AddCommand ("help", M_Menu_Help_f);
|
||||
Cmd_AddCommand ("menu_help", M_Menu_Help_f);
|
||||
Cmd_AddCommand ("menu_quit", M_Menu_Quit_f);
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue