- Fully implemented CVAR_OVERRIDEGET for vid_renderer from the ZDoom code submission.

This commit is contained in:
Rachael Alexanderson 2016-11-15 19:52:40 -05:00
parent 9b9ed64360
commit 813030efef
4 changed files with 3 additions and 6 deletions

View file

@ -52,9 +52,6 @@
#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)

View file

@ -123,7 +123,7 @@ CUSTOM_CVAR(Bool, vid_autoswitch, true, CVAR_ARCHIVE | CVAR_GLOBALCONFIG | CVAR_
static int s_currentRenderer;
CUSTOM_CVAR(Int, vid_renderer, 1, CVAR_ARCHIVE | CVAR_GLOBALCONFIG | CVAR_NOINITCALL)
CUSTOM_CVAR(Int, vid_renderer, 1, CVAR_ARCHIVE | CVAR_GLOBALCONFIG | CVAR_NOINITCALL | CVAR_OVERRIDEGET)
{
// 0: Software renderer
// 1: OpenGL renderer

View file

@ -64,7 +64,7 @@ void I_RestartRenderer();
int currentrenderer;
// [ZDoomGL]
CUSTOM_CVAR (Int, vid_renderer, 1, CVAR_ARCHIVE | CVAR_GLOBALCONFIG | CVAR_NOINITCALL)
CUSTOM_CVAR (Int, vid_renderer, 1, CVAR_ARCHIVE | CVAR_GLOBALCONFIG | CVAR_NOINITCALL | CVAR_OVERRIDEGET)
{
// 0: Software renderer
// 1: OpenGL renderer

View file

@ -71,7 +71,7 @@ int currentrenderer = -1;
bool changerenderer;
// [ZDoomGL]
CUSTOM_CVAR (Int, vid_renderer, 1, CVAR_ARCHIVE | CVAR_GLOBALCONFIG | CVAR_NOINITCALL)
CUSTOM_CVAR (Int, vid_renderer, 1, CVAR_ARCHIVE | CVAR_GLOBALCONFIG | CVAR_NOINITCALL | CVAR_OVERRIDEGET)
{
// 0: Software renderer
// 1: OpenGL renderer