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,