|
|
|
@ -886,6 +886,10 @@ pfnCvar_RegisterVariable
@@ -886,6 +886,10 @@ pfnCvar_RegisterVariable
|
|
|
|
|
*/ |
|
|
|
|
cvar_t *pfnCvar_RegisterClientVariable( const char *szName, const char *szValue, int flags ) |
|
|
|
|
{ |
|
|
|
|
// a1ba: try to mitigate outdated client.dll vulnerabilities
|
|
|
|
|
if( !Q_stricmp( szName, "motdfile" )) |
|
|
|
|
flags |= FCVAR_LOCALONLY; |
|
|
|
|
|
|
|
|
|
if( FBitSet( flags, FCVAR_GLCONFIG )) |
|
|
|
|
return (cvar_t *)Cvar_Get( szName, szValue, flags, va( CVAR_GLCONFIG_DESCRIPTION, szName )); |
|
|
|
|
return (cvar_t *)Cvar_Get( szName, szValue, flags|FCVAR_CLIENTDLL, Cvar_BuildAutoDescription( flags|FCVAR_CLIENTDLL )); |
|
|
|
|