Hook up 'help' command callback

In-engine implementation has logging stripped.
This commit is contained in:
Kawe Mazidjatari 2022-08-13 12:57:52 +02:00
parent dbdfdc2b3a
commit f08fbc8745
3 changed files with 16 additions and 0 deletions

View File

@ -375,6 +375,7 @@ void ConCommand::InitShipped(void)
{ {
//------------------------------------------------------------------------- //-------------------------------------------------------------------------
// ENGINE DLL | // ENGINE DLL |
g_pCVar->FindCommand("help")->m_fnCommandCallback = CVHelp_f;
g_pCVar->FindCommand("convar_list")->m_fnCommandCallback = CVList_f; g_pCVar->FindCommand("convar_list")->m_fnCommandCallback = CVList_f;
g_pCVar->FindCommand("convar_differences")->m_fnCommandCallback = CVDiff_f; g_pCVar->FindCommand("convar_differences")->m_fnCommandCallback = CVDiff_f;
#ifndef DEDICATED #ifndef DEDICATED

View File

@ -1054,6 +1054,19 @@ void BHit_f(const CCommand& args)
#endif // !DEDICATED #endif // !DEDICATED
} }
/*
=====================
CVHelp_f
Show help text for a
particular convar/concommand
=====================
*/
void CVHelp_f(const CCommand& args)
{
cv->CvarHelp(args);
}
/* /*
===================== =====================
CVList_f CVList_f

View File

@ -53,6 +53,8 @@ void Sphere_f(const CCommand& args);
void Capsule_f(const CCommand& args); void Capsule_f(const CCommand& args);
#endif // !DEDICATED #endif // !DEDICATED
void BHit_f(const CCommand& args); void BHit_f(const CCommand& args);
void CVHelp_f(const CCommand& args);
void CVList_f(const CCommand& args); void CVList_f(const CCommand& args);
void CVDiff_f(const CCommand& args); void CVDiff_f(const CCommand& args);
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////