]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cvar.h
fix the name (DOWNLOADPROGRESS -> LOADPROGRESS)
[xonotic/darkplaces.git] / cvar.h
diff --git a/cvar.h b/cvar.h
index 63b1b5e4e1c395295fb34a828231a5e5acd1f01a..70f85fc92a060917c0a35e9e3b0e9b9c3de04819 100644 (file)
--- a/cvar.h
+++ b/cvar.h
@@ -158,6 +158,9 @@ const char *Cvar_VariableString (const char *var_name);
 const char *Cvar_VariableDefString (const char *var_name);
 // returns an empty string if not defined
 
+const char *Cvar_VariableDescription (const char *var_name);
+// returns an empty string if not defined
+
 const char *Cvar_CompleteVariable (const char *partial);
 // attempts to match a partial variable name for command line completion
 // returns NULL if nothing fits
@@ -199,9 +202,12 @@ void Cvar_SetA_f (void);
 // commands to create new cvars (or set existing ones)
 // seta creates an archived cvar (saved to config)
 
-cvar_t *Cvar_Get (const char *name, const char *value, int flags);
+cvar_t *Cvar_Get (const char *name, const char *value, int flags, const char *newdescription);
 // allocates a cvar by name and returns its address,
 // or merely sets its value if it already exists.
 
+extern char *cvar_dummy_description; // ALWAYS the same pointer
+extern cvar_t *cvar_vars; // used to list all cvars
+
 #endif