56#include "../qclib/hash.h"
88#define CVARAFCD(ConsoleName,Value,ConsoleName2,Flags,Callback,Description) {ConsoleName, NULL, NULL, Flags, 0, 0, 0, ConsoleName2, Callback, NULL, Value}
90#define CVARAFCD(ConsoleName,Value,ConsoleName2,Flags,Callback,Description) {ConsoleName, NULL, NULL, Flags, 0, 0, 0, ConsoleName2, Callback, Description, Value}
92#define CVARAFD(ConsoleName,Value,ConsoleName2,Flags,Description)CVARAFCD(ConsoleName, Value, ConsoleName2, Flags, NULL, Description)
93#define CVARAFC(ConsoleName,Value,ConsoleName2,Flags,Callback) CVARAFCD(ConsoleName, Value, ConsoleName2, Flags, Callback, NULL)
94#define CVARAF(ConsoleName,Value,ConsoleName2,Flags) CVARAFCD(ConsoleName, Value, ConsoleName2, Flags, NULL, NULL)
95#define CVARFCD(ConsoleName,Value,Flags,Callback,Description) CVARAFCD(ConsoleName, Value, NULL, Flags, Callback, Description)
96#define CVARFC(ConsoleName,Value,Flags,Callback) CVARAFCD(ConsoleName, Value, NULL, Flags, Callback, NULL)
97#define CVARAD(ConsoleName,Value,ConsoleName2,Description) CVARAFCD(ConsoleName, Value, ConsoleName2, 0, NULL, Description)
98#define CVARFD(ConsoleName,Value,Flags,Description) CVARAFCD(ConsoleName, Value, NULL, Flags, NULL, Description)
99#define CVARF(ConsoleName,Value,Flags) CVARFC(ConsoleName, Value, Flags, NULL)
100#define CVARC(ConsoleName,Value,Callback) CVARFC(ConsoleName, Value, 0, Callback)
101#define CVARCD(ConsoleName,Value,Callback,Description) CVARAFCD(ConsoleName, Value, NULL, 0, Callback, Description)
102#define CVARD(ConsoleName,Value,Description) CVARAFCD(ConsoleName, Value, NULL, 0, NULL, Description)
103#define CVAR(ConsoleName,Value) CVARD(ConsoleName, Value, NULL)
114#define CVAR_ARCHIVE (1<<0)
115#define CVAR_USERINFO (1<<1)
116#define CVAR_SERVERINFO (1<<2)
117#define CVAR_NOSET (1<<3)
119#define CVAR_MAPLATCH (1<<4)
122#define CVAR_POINTER (1<<5)
124#define CVAR_NOTFROMSERVER (1<<7)
125#define CVAR_USERCREATED (1<<8)
126#define CVAR_CHEAT (1<<9)
127#define CVAR_SEMICHEAT (1<<10)
128#define CVAR_RENDERERLATCH (1<<11)
129#define CVAR_SERVEROVERRIDE (1<<12)
130#define CVAR_RENDERERCALLBACK (1<<13)
131#define CVAR_NOUNSAFEEXPAND (1<<14)
132#define CVAR_RULESETLATCH (1<<15)
133#define CVAR_SHADERSYSTEM (1<<16)
134#define CVAR_TELLGAMECODE (1<<17)
136#define CVAR_CONFIGDEFAULT (1<<18)
137#define CVAR_NOSAVE (1<<19)
138#define CVAR_NORESET (1<<20)
139#define CVAR_TEAMPLAYTAINT (1<<21)
141#define CVAR_WATCHED (1<<22)
142#define CVAR_VIDEOLATCH (1<<23)
143#define CVAR_WARNONCHANGE (1<<24)
145#define CVAR_LASTFLAG CVAR_VIDEOLATCH
147#define CVAR_LATCHMASK (CVAR_MAPLATCH|CVAR_RENDERERLATCH|CVAR_VIDEOLATCH|CVAR_SERVEROVERRIDE|CVAR_CHEAT|CVAR_SEMICHEAT)
148#define CVAR_NEEDDEFAULT CVAR_CHEAT
151#define CVAR_SAVE CVAR_ARCHIVE
154#define Cvar_Get(n,v,f,g) Cvar_Get2(n,v,f,NULL,g)
203void Cvar_SetNamed (
const char *var_name,
const char *newvalue);
void dNearCallback * callback
Definition: com_phys_ode.c:655
unsigned char qbyte
Definition: common.h:127
void Cvar_Saved(void)
Definition: cvar.c:887
struct cvar_group_s cvar_group_t
void Cvar_SetEngineDefault(cvar_t *var, char *val)
Definition: cvar.c:544
char * Cvar_VariableString(const char *var_name)
Definition: cvar.c:825
char * Cvar_CompleteVariable(const char *partial)
qboolean Cvar_Command(cvar_t *v, int level)
Definition: cvar.c:1484
void Cvar_ApplyCallbacks(int callbackflag)
Definition: cvar.c:1729
void Cvar_ForceCheatVars(qboolean semicheats, qboolean absolutecheats)
Definition: cvar.c:1123
int Cvar_ApplyLatches(int latchflag, qboolean clearflag)
Definition: cvar.c:1180
void Cvar_ParseWatches(void)
Definition: cmd.c:4063
cvar_t * Cvar_FindVar(const char *var_name)
Definition: cvar.c:156
qboolean Cvar_UnsavedArchive(void)
Definition: cvar.c:879
int cvar_watched
Definition: cvar.c:115
void Cvar_Unhook(cvar_t *cvar)
Definition: cvar.c:1717
void Cvar_ForceSetValue(cvar_t *var, float value)
Definition: cvar.c:1247
cvar_t * Cvar_Set(cvar_t *var, const char *value)
Definition: cvar.c:1212
void Cvar_Shutdown(void)
Definition: cvar.c:1766
void Cvar_SetNamed(const char *var_name, const char *newvalue)
Definition: cvar.c:835
void Cvar_SetValue(cvar_t *var, float value)
Definition: cvar.c:1226
qboolean Cvar_Register(cvar_t *variable, const char *cvargroup)
Definition: cvar.c:1302
void Cvar_Init(void)
Definition: cvar.c:1760
void Cvar_ConfigChanged(void)
Definition: cvar.c:883
void Cvar_LockFromServer(cvar_t *var, const char *str)
Definition: cvar.c:1453
cvar_t * Cvar_Get2(const char *var_name, const char *value, int flags, const char *description, const char *groupname)
Definition: cvar.c:1400
void Cvar_Hook(cvar_t *cvar, void(QDECL *callback)(struct cvar_s *var, char *oldvalue))
Definition: cvar.c:1712
qboolean Cvar_ApplyLatchFlag(cvar_t *var, char *value, unsigned int newflag, unsigned int ignoreflags)
Definition: cvar.c:1080
float Cvar_VariableValue(const char *var_name)
Definition: cvar.c:809
void QDECL Cvar_Limiter_ZeroToOne_Callback(struct cvar_s *var, char *oldvalue)
Definition: cvar.c:1746
void Cvar_ForceCallback(cvar_t *cvar)
Definition: cvar.c:1722
cvar_t * Cvar_ForceSet(cvar_t *var, const char *value)
Definition: cvar.c:1216
void Cvar_WriteVariables(vfsfile_t *f, qboolean all)
Definition: cvar.c:1667
GLint level
Definition: gl_vidcommon.c:42
GLsizei GLboolean const GLfloat * value
Definition: glquake.h:164
const GLfloat * v
Definition: glsupp.h:466
const char * var
Definition: pr_lua.c:225
cvar_t * cvars
Definition: cvar.h:110
const char * name
Definition: cvar.h:107
struct cvar_group_s * next
Definition: cvar.h:108
struct cvar_s * next
Definition: cvar.h:67
struct hlcvar_s * hlcvar
Definition: cvar.h:83
qbyte restriction
Definition: cvar.h:76
int ival
Definition: cvar.h:78
int modifiedcount
Definition: cvar.h:80
const char * description
Definition: cvar.h:73
qboolean modified
Definition: cvar.h:65
char * name2
Definition: cvar.h:70
vec4_t vec4
Definition: cvar.h:79
float value
Definition: cvar.h:66
void(QDECL *callback)(struct cvar_s *var
char * name
Definition: cvar.h:61
unsigned int flags
Definition: cvar.h:64
char * latched_string
Definition: cvar.h:63
char * enginevalue
Definition: cvar.h:74
char * oldvalue
Definition: cvar.h:72
char * defaultstr
Definition: cvar.h:75
char * string
Definition: cvar.h:62
Definition: svhl_gcapi.h:267
void * vfsfile_t
Definition: sys_plugfte.h:2
unsigned int flags
Definition: valid.c:313