This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
// 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)
/*
#define MAX_CVAROPTIONS 16
-typedef struct
+typedef struct cvaroption_s
{
int value;
const char *name;
}
cvaroption_t;
-typedef struct
+typedef struct menucvar_s
{
int type;
float valuemin, valuemax, valuestep;
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;
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