mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Rename dump_binds
command to binds
, fix typo in description
This commit is contained in:
parent
9548b34e67
commit
ca31b495a9
|
@ -254,7 +254,7 @@ void CBinds::OnConsoleInit()
|
|||
pConfigManager->RegisterCallback(ConfigSaveCallback, this);
|
||||
|
||||
Console()->Register("bind", "s[key] r[command]", CFGFLAG_CLIENT, ConBind, this, "Bind key to execute the command");
|
||||
Console()->Register("dump_binds", "?s[key]", CFGFLAG_CLIENT, ConDumpBinds, this, "Print command executed by this keybindind or all binds");
|
||||
Console()->Register("binds", "?s[key]", CFGFLAG_CLIENT, ConBinds, this, "Print command executed by this keybinding or all binds");
|
||||
Console()->Register("unbind", "s[key]", CFGFLAG_CLIENT, ConUnbind, this, "Unbind key");
|
||||
Console()->Register("unbindall", "", CFGFLAG_CLIENT, ConUnbindAll, this, "Unbind all keys");
|
||||
|
||||
|
@ -280,7 +280,7 @@ void CBinds::ConBind(IConsole::IResult *pResult, void *pUserData)
|
|||
pBinds->Bind(KeyID, pResult->GetString(1), false, Modifier);
|
||||
}
|
||||
|
||||
void CBinds::ConDumpBinds(IConsole::IResult *pResult, void *pUserData)
|
||||
void CBinds::ConBinds(IConsole::IResult *pResult, void *pUserData)
|
||||
{
|
||||
CBinds *pBinds = (CBinds *)pUserData;
|
||||
if(pResult->NumArguments() == 1)
|
||||
|
|
|
@ -15,7 +15,7 @@ class CBinds : public CComponent
|
|||
int GetKeyID(const char *pKeyName);
|
||||
|
||||
static void ConBind(IConsole::IResult *pResult, void *pUserData);
|
||||
static void ConDumpBinds(IConsole::IResult *pResult, void *pUserData);
|
||||
static void ConBinds(IConsole::IResult *pResult, void *pUserData);
|
||||
static void ConUnbind(IConsole::IResult *pResult, void *pUserData);
|
||||
static void ConUnbindAll(IConsole::IResult *pResult, void *pUserData);
|
||||
class IConsole *GetConsole() const { return Console(); }
|
||||
|
|
Loading…
Reference in a new issue