rendered paste body// CG/UI lib cvars
if (command == CG_CVAR_REGISTER) {
if (arg[3] & CVAR_CHEAT) {
#ifdef NEX_VERBOSE
nexUtils.log("CG: Unlocking cheat cvar: %s", arg[1]);
#endif
arg[3] &= ~CVAR_CHEAT;
}
}
// CVARS LOCATED IN ET.EXE (r_* and some others)
cvar_t *__cdecl nex_Cvar_Get(const char *var_name, const char *var_value, int flags) {
if (flags & CVAR_CHEAT) {
#ifdef NEX_VERBOSE
nexUtils.log("Cvar_Get: Unlocking cheat cvar %s", var_name);
#endif
flags &= ~CVAR_CHEAT;
}
return orig_Cvar_Get(var_name, var_value, flags);
}