]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cvar.h
cvar: Rename aliasindex to aliases_size and only use it for size of the aliases array...
[xonotic/darkplaces.git] / cvar.h
diff --git a/cvar.h b/cvar.h
index e54e1817f0f46a807917dc8b5a45fcf1ba773d88..660320390f99358d826e0f8f1fa0b12f790840c4 100644 (file)
--- a/cvar.h
+++ b/cvar.h
@@ -1,5 +1,6 @@
 /*
 Copyright (C) 1996-1997 Id Software, Inc.
 /*
 Copyright (C) 1996-1997 Id Software, Inc.
+Copyright (C) 2006-2021 DarkPlaces contributors
 
 This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU General Public License
 
 This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU General Public License
@@ -76,10 +77,9 @@ typedef struct cvar_s
        const char *defstring;
 
        void (*callback)(struct cvar_s *var);
        const char *defstring;
 
        void (*callback)(struct cvar_s *var);
-       qbool ignore_callback;
 
        char **aliases;
 
        char **aliases;
-       int aliasindex;
+       int aliases_size;
 
        struct cvar_s *initstate; // snapshot of cvar during init
 
 
        struct cvar_s *initstate; // snapshot of cvar during init
 
@@ -115,6 +115,8 @@ void Cvar_RegisterVariable(cvar_t *variable);
 
 qbool Cvar_Readonly (cvar_t *var, const char *cmd_name);
 
 
 qbool Cvar_Readonly (cvar_t *var, const char *cmd_name);
 
+void Cvar_Callback(cvar_t *var);
+
 /// equivelant to "<name> <variable>" typed at the console
 void Cvar_Set (cvar_state_t *cvars, const char *var_name, const char *value);
 
 /// equivelant to "<name> <variable>" typed at the console
 void Cvar_Set (cvar_state_t *cvars, const char *var_name, const char *value);