]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cvar.h
Apparently this shuts 'assignment in conditional' warnings up
[xonotic/darkplaces.git] / cvar.h
diff --git a/cvar.h b/cvar.h
index 9523404ec61720f1f8751e016b5be7409b83642b..b587e6b1b8ec8a3e5697e9ef02e32a50c5b782d3 100644 (file)
--- a/cvar.h
+++ b/cvar.h
@@ -64,6 +64,7 @@ interface from being ambiguous.
 // used to determine if flags is valid
 #define CVAR_MAXFLAGSVAL 7
 // for internal use only!
+#define CVAR_DEFAULTSET (1<<30)
 #define CVAR_ALLOCATED (1<<31)
 
 /*
@@ -104,11 +105,16 @@ menucvar_t;
 typedef struct cvar_s
 {
        int flags;
+
        char *name;
+
        char *string;
        int integer;
        float value;
        float vector[3];
+
+       char *defstring;
+
        //menucvar_t menuinfo;
        struct cvar_s *next;
 } cvar_t;
@@ -141,6 +147,9 @@ float Cvar_VariableValue (const char *var_name);
 const char *Cvar_VariableString (const char *var_name);
 // returns an empty string if not defined
 
+const char *Cvar_VariableDefString (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