X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=cvar.h;h=1509f756f5ce405a7ff65a344541744c69bf02b0;hb=750d19efdc7013c4380d3a5823389e2617af41a1;hp=636ca40b6c0c963f0e55c74e6cc078e5b559ea40;hpb=7552885ae0db4b06e323f60ad00e43274adcdd61;p=xonotic%2Fdarkplaces.git diff --git a/cvar.h b/cvar.h index 636ca40b..1509f756 100644 --- a/cvar.h +++ b/cvar.h @@ -114,15 +114,15 @@ typedef struct cvar_s { int flags; - char *name; + const char *name; - char *string; - char *description; + const char *string; + const char *description; int integer; float value; float vector[3]; - char *defstring; + const char *defstring; unsigned int globaldefindex_progid[3]; int globaldefindex[3]; @@ -205,6 +205,7 @@ void Cvar_List_f (void); void Cvar_Set_f (void); void Cvar_SetA_f (void); +void Cvar_Del_f (void); // commands to create new cvars (or set existing ones) // seta creates an archived cvar (saved to config) @@ -212,9 +213,11 @@ void Cvar_SetA_f (void); /// or merely sets its value if it already exists. cvar_t *Cvar_Get (const char *name, const char *value, int flags, const char *newdescription); -extern char *cvar_dummy_description; // ALWAYS the same pointer +extern const char *cvar_dummy_description; // ALWAYS the same pointer extern cvar_t *cvar_vars; // used to list all cvars +void Cvar_UpdateAllAutoCvars(void); // updates ALL autocvars of the active prog to the cvar values (savegame loading) + #ifdef FILLALLCVARSWITHRUBBISH void Cvar_FillAll_f(); #endif /* FILLALLCVARSWITHRUBBISH */