- Implemented sv_overridegetcvar: This will override the return value for GetCVar checks for certain CVars marked with the CVAR_OVERRIDEGET flag. Instead of returning their true value, they only return defaults instead.
- Implemented dummy CVar vid_renderer with a default value of 1. This allows mods not designed for the software renderer to run if sv_overridegetcvar is turned on.
This commit is contained in:
parent
d36993a03b
commit
9b9ed64360
4 changed files with 34 additions and 0 deletions
|
|
@ -52,6 +52,13 @@
|
|||
#include "v_video.h"
|
||||
#include "colormatcher.h"
|
||||
|
||||
// [SP] This is a dummy CVAR that needs to be removed in child ports that implement the real version.
|
||||
CVAR(Int, vid_renderer, 1, CVAR_GLOBALCONFIG | CVAR_OVERRIDEGET | CVAR_ARCHIVE)
|
||||
|
||||
// [SP] Lets the player (arbitrator) choose whether to override GetCVar checks.
|
||||
// Danger of desync? Can we just make it a client var? This probably *fixes* desyncs, actually...
|
||||
CVAR(Bool, sv_overridegetcvar, true, CVAR_SERVERINFO | CVAR_GLOBALCONFIG | CVAR_ARCHIVE)
|
||||
|
||||
struct FLatchedValue
|
||||
{
|
||||
FBaseCVar *Variable;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue