From 62138c66b874200401886277e4ef9c07d2b2eeb0 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 10 Jun 2020 13:05:00 +0200 Subject: [PATCH] - 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. --- src/common/console/c_cvars.cpp | 19 +++++++++++++++++++ src/common/console/c_cvars.h | 1 + 2 files changed, 20 insertions(+) diff --git a/src/common/console/c_cvars.cpp b/src/common/console/c_cvars.cpp index 5b15a7ebc..fe951d65c 100644 --- a/src/common/console/c_cvars.cpp +++ b/src/common/console/c_cvars.cpp @@ -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(); +} diff --git a/src/common/console/c_cvars.h b/src/common/console/c_cvars.h index 2fc08df7c..6218cb956 100644 --- a/src/common/console/c_cvars.h +++ b/src/common/console/c_cvars.h @@ -218,6 +218,7 @@ private: friend void C_SetCVarsToDefaults (void); friend void FilterCompactCVars (TArray &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,