Browse Source

engine: common: add joy_ prefix to automatically filterable cvars

master
Alibek Omarov 4 months ago
parent
commit
6a7e027248
  1. 2
      engine/common/cmd.c
  2. 2
      engine/common/cvar.c

2
engine/common/cmd.c

@ -949,7 +949,7 @@ static void Cmd_Else_f( void ) @@ -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

2
engine/common/cvar.c

@ -953,7 +953,7 @@ static void Cvar_SetGL( const char *name, const char *value ) @@ -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 )

Loading…
Cancel
Save