mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2025-01-19 15:10:56 +00:00
add the #defines Zoid posted to irc
This commit is contained in:
parent
1bf5d6c30c
commit
6656fb6af6
1 changed files with 19 additions and 0 deletions
|
@ -71,6 +71,25 @@ typedef struct cvar_s
|
||||||
struct cvar_s *next;
|
struct cvar_s *next;
|
||||||
} cvar_t;
|
} cvar_t;
|
||||||
|
|
||||||
|
#define CVAR_ARCHIVE 1 // set to cause it to be saved to vars.rc
|
||||||
|
// used for system variables, not for player
|
||||||
|
// specific configurations
|
||||||
|
#define CVAR_USERINFO 2 // sent to server on connect or change
|
||||||
|
#define CVAR_SERVERINFO 4 // sent in response to front end requests
|
||||||
|
#define CVAR_SYSTEMINFO 8 // these cvars will be duplicated on all clients
|
||||||
|
#define CVAR_INIT 16 // don't allow change from console at all,
|
||||||
|
// but can be set from the command line
|
||||||
|
#define CVAR_LATCH 32 // will only change when C code next does
|
||||||
|
// a Cvar_Get(), so it can't be changed
|
||||||
|
// without proper initialization. modified
|
||||||
|
// will be set, even though the value hasn't
|
||||||
|
// changed yet
|
||||||
|
#define CVAR_ROM 64 // display only, cannot be set by user at all
|
||||||
|
#define CVAR_USER_CREATED 128 // created by a set command
|
||||||
|
#define CVAR_TEMP 256 // can be set even when cheats are disabled, but is not archived
|
||||||
|
#define CVAR_CHEAT 512 // can not be changed if cheats are disabled
|
||||||
|
#define CVAR_NORESTART 1024 // do not clear when a cvar_restart is issued
|
||||||
|
|
||||||
|
|
||||||
void Cvar_RegisterVariable (cvar_t *variable);
|
void Cvar_RegisterVariable (cvar_t *variable);
|
||||||
// registers a cvar that allready has the name, string, and optionally the
|
// registers a cvar that allready has the name, string, and optionally the
|
||||||
|
|
Loading…
Reference in a new issue