mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +00:00
- 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:
parent
82af7f4f68
commit
62138c66b8
2 changed files with 20 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue