diff --git a/engine/client/cl_main.c b/engine/client/cl_main.c index 562505317..673709622 100644 --- a/engine/client/cl_main.c +++ b/engine/client/cl_main.c @@ -63,7 +63,6 @@ extern cvar_t net_compress; cvar_t cl_defaultport = CVARAFD("cl_defaultport", STRINGIFY(PORT_QWSERVER), "port", 0, "The default port to connect to servers.\nQW: "STRINGIFY(PORT_QWSERVER)", NQ: "STRINGIFY(PORT_NQSERVER)", Q2: "STRINGIFY(PORT_Q2SERVER)"."); cvar_t cfg_save_name = CVARFD("cfg_save_name", "fte", CVAR_ARCHIVE|CVAR_NOTFROMSERVER, "This is the config name that is saved by default when no argument is specified."); -cvar_t cfg_save_all = CVARFD("cfg_save_all", "", CVAR_ARCHIVE|CVAR_NOTFROMSERVER, "If 1, cfg_save ALWAYS saves all cvars. If 0, cfg_save only ever saves archived cvars. If empty, cfg_saves all cvars only when an explicit filename was given."); cvar_t cl_splitscreen = CVARD("cl_splitscreen", "0", "Enables splitscreen support. See also: allow_splitscreen, in_rawinput*, the \"p\" command."); @@ -3558,7 +3557,6 @@ void CL_Init (void) Cvar_Register (&developer, cl_controlgroup); Cvar_Register (&cfg_save_name, cl_controlgroup); - Cvar_Register (&cfg_save_all, cl_controlgroup); Cvar_Register (&cl_sendguid, cl_controlgroup); Cvar_Register (&cl_defaultport, cl_controlgroup); diff --git a/engine/common/cmd.c b/engine/common/cmd.c index f62cc512e..b99d422cf 100644 --- a/engine/common/cmd.c +++ b/engine/common/cmd.c @@ -47,6 +47,7 @@ typedef struct cmdalias_s cmdalias_t *cmd_alias; +cvar_t cfg_save_all = CVARFD("cfg_save_all", "", CVAR_ARCHIVE|CVAR_NOTFROMSERVER, "If 1, cfg_save ALWAYS saves all cvars. If 0, cfg_save only ever saves archived cvars. If empty, cfg_saves all cvars only when an explicit filename was given."); cvar_t cl_warncmd = CVARF("cl_warncmd", "1", CVAR_NOSAVE|CVAR_NORESET); cvar_t cl_aliasoverlap = CVARF("cl_aliasoverlap", "1", CVAR_NOTFROMSERVER); @@ -3244,6 +3245,7 @@ void Cmd_Init (void) Cvar_Register(&dpcompat_set, "Darkplaces compatibility"); Cvar_Register (&cl_warncmd, "Warnings"); + Cvar_Register (&cfg_save_all, "client operation options"); #ifndef SERVERONLY rcon_level.ival = atof(rcon_level.enginevalue); //client is restricted to not be allowed to change restrictions.