Register execversion and remove CV_SAVE because we write manually

This commit is contained in:
mazmazz 2018-12-06 12:28:30 -05:00
parent 0be61e8830
commit 3ceeb6a205
2 changed files with 4 additions and 1 deletions

View file

@ -66,7 +66,7 @@ CV_PossibleValue_t CV_Natural[] = {{1, "MIN"}, {999999999, "MAX"}, {0, NULL}};
// Filter consvars by MODVERSION // Filter consvars by MODVERSION
// First implementation is 26 (2.1.21), so earlier configs default at 25 (2.1.20) // First implementation is 26 (2.1.21), so earlier configs default at 25 (2.1.20)
// Also set CV_HIDEN during runtime, after config is loaded // Also set CV_HIDEN during runtime, after config is loaded
consvar_t cv_execversion = {"execversion","25",CV_SAVE,CV_Unsigned, NULL, 0, NULL, NULL, 0, 0, NULL}; consvar_t cv_execversion = {"execversion","25",0,CV_Unsigned, NULL, 0, NULL, NULL, 0, 0, NULL};
// for default joyaxis detection // for default joyaxis detection
static boolean joyaxis_default = false; static boolean joyaxis_default = false;

View file

@ -489,6 +489,9 @@ void M_FirstLoadConfig(void)
// load default control // load default control
G_Controldefault(); G_Controldefault();
// register execversion here before we load any configs
CV_RegisterVar(&cv_execversion);
// temporarily reset execversion to default // temporarily reset execversion to default
// we shouldn't need to do this, but JUST in case... // we shouldn't need to do this, but JUST in case...
cv_execversion.flags &= ~CV_HIDEN; cv_execversion.flags &= ~CV_HIDEN;