- added a CCMD that lists all CVARS which don't have a description.

This way it should be easier to fill in the missing texts.
This commit is contained in:
Christoph Oelckers 2020-06-10 13:05:00 +02:00
parent 82af7f4f68
commit 62138c66b8
2 changed files with 20 additions and 0 deletions

View File

@ -1600,3 +1600,22 @@ CCMD (archivecvar)
}
}
void C_ListCVarsWithoutDescription()
{
FBaseCVar* var = CVars;
int count = 0;
while (var)
{
if (var->GetDescription().IsEmpty())
{
Printf("%s\n", var->GetName());
}
var = var->m_Next;
}
}
CCMD(listcvarswithoutdescription)
{
C_ListCVarsWithoutDescription();
}

View File

@ -218,6 +218,7 @@ private:
friend void C_SetCVarsToDefaults (void);
friend void FilterCompactCVars (TArray<FBaseCVar *> &cvars, uint32_t filter);
friend void C_DeinitConsole();
friend void C_ListCVarsWithoutDescription();
};
// Returns a string with all cvars whose flags match filter. In compact mode,