X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=cvar.h;h=92ea81cdc54ee26ce172ce63e5ee429cb8d235b9;hb=f1bd31aec8ede40a222bbec6edaf65836b55910c;hp=18010dec7c1af161ee0b920a17d7863cdb4389e0;hpb=695449b27b0210ce2cfba1446fdb458a908c7456;p=xonotic%2Fdarkplaces.git diff --git a/cvar.h b/cvar.h index 18010dec..92ea81cd 100644 --- a/cvar.h +++ b/cvar.h @@ -1,5 +1,6 @@ /* 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 @@ -76,10 +77,9 @@ typedef struct cvar_s const char *defstring; void (*callback)(struct cvar_s *var); - qbool ignore_callback; char **aliases; - int aliasindex; + int aliases_size; struct cvar_s *initstate; // snapshot of cvar during init @@ -105,7 +105,7 @@ cvar_state_t; extern cvar_state_t cvars_all; extern cvar_state_t cvars_null; // used by cmd_serverfromclient which intentionally has no cvars available -void Cvar_RegisterAlias(cvar_t *variable, const char *alias ); +void Cvar_RegisterVirtual(cvar_t *variable, const char *name ); void Cvar_RegisterCallback(cvar_t *variable, void (*callback)(cvar_t *));