Skip to content

Commit

Permalink
- added a CCMD that lists all CVARS which don't have a description.
Browse files Browse the repository at this point in the history
This way it should be easier to fill in the missing texts.
  • Loading branch information
coelckers committed Jun 10, 2020
1 parent 82af7f4 commit 62138c6
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/common/console/c_cvars.cpp
Expand Up @@ -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();
}
1 change: 1 addition & 0 deletions src/common/console/c_cvars.h
Expand Up @@ -218,6 +218,7 @@ class FBaseCVar
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,
Expand Down

0 comments on commit 62138c6

Please sign in to comment.