From 6a7e0272487e37a13bd93dac2d0afd6a29f38249 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Fri, 8 Mar 2024 15:15:43 +0300 Subject: [PATCH] engine: common: add joy_ prefix to automatically filterable cvars --- engine/common/cmd.c | 2 +- engine/common/cvar.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/common/cmd.c b/engine/common/cmd.c index 741cb02f..21e2a16b 100644 --- a/engine/common/cmd.c +++ b/engine/common/cmd.c @@ -949,7 +949,7 @@ static void Cmd_Else_f( void ) static qboolean Cmd_ShouldAllowCommand( cmd_t *cmd, qboolean isPrivileged ) { - const char *prefixes[] = { "cl_", "gl_", "r_", "m_", "hud_" }; + const char *prefixes[] = { "cl_", "gl_", "r_", "m_", "hud_", "joy_" }; int i; // always allow local commands diff --git a/engine/common/cvar.c b/engine/common/cvar.c index 6c890d22..774e0263 100644 --- a/engine/common/cvar.c +++ b/engine/common/cvar.c @@ -953,7 +953,7 @@ static void Cvar_SetGL( const char *name, const char *value ) static qboolean Cvar_ShouldSetCvar( convar_t *v, qboolean isPrivileged ) { - const char *prefixes[] = { "cl_", "gl_", "m_", "r_", "hud_" }; + const char *prefixes[] = { "cl_", "gl_", "m_", "r_", "hud_", "joy_" }; int i; if( isPrivileged )