From f4f0e9516a4dd5c2471cc8c989933bf5b377cc15 Mon Sep 17 00:00:00 2001 From: Shpoike Date: Wed, 8 Jul 2020 15:46:00 +0100 Subject: [PATCH] Let menuqc detect engine more easily, so it can tailor available cvar values for specific engines. This is probably a bad thing but I don't see any other sane way around it. With it being a cvar, the user can at least override it/lie to fake forked engines. --- Quake/host.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Quake/host.c b/Quake/host.c index ca4d535e..571223dc 100644 --- a/Quake/host.c +++ b/Quake/host.c @@ -80,6 +80,7 @@ cvar_t pausable = {"pausable","1",CVAR_NONE}; cvar_t developer = {"developer","0",CVAR_NONE}; +static cvar_t pr_engine = {"pr_engine", ENGINE_NAME_AND_VER, CVAR_NONE}; cvar_t temp1 = {"temp1","0",CVAR_NONE}; cvar_t devstats = {"devstats","0",CVAR_NONE}; //johnfitz -- track developer statistics that vary every frame @@ -283,6 +284,7 @@ void Host_InitLocal (void) Host_InitCommands (); + Cvar_RegisterVariable (&pr_engine); Cvar_RegisterVariable (&host_framerate); Cvar_RegisterVariable (&host_speeds); Cvar_RegisterVariable (&host_maxfps); //johnfitz