mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2025-01-31 12:40:56 +00:00
added a comment from Zoid describing how things like CVAR_ROM works
This commit is contained in:
parent
6656fb6af6
commit
f74c84e695
1 changed files with 6 additions and 0 deletions
|
@ -90,6 +90,12 @@ typedef struct cvar_s
|
|||
#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
|
||||
|
||||
// Zoid| A good CVAR_ROM example is basepath. The code should read "cvar_t
|
||||
// *fs_basepath = CvarGet("fs_basepath", ".", CVAR_ROM); The user can
|
||||
// override that with +set fs_basepath <blah> since the command line +set gets
|
||||
// created _before_ the C code for fs_basepath setup is called. The code goes
|
||||
// "look, the user made fs_basepath already", uses the users value, but sets
|
||||
// CVAR_ROM as per the call.
|
||||
|
||||
void Cvar_RegisterVariable (cvar_t *variable);
|
||||
// registers a cvar that allready has the name, string, and optionally the
|
||||
|
|
Loading…
Reference in a new issue