engine: common: add joy_ prefix to automatically filterable cvars

This commit is contained in:
Alibek Omarov 2024-03-08 15:15:43 +03:00
parent 27100e7751
commit 6a7e027248
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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 )