Skip to content
Snippets Groups Projects
Commit b64dd820 authored by Marco Z's avatar Marco Z
Browse files

Attempt to fix cv_execversion being accessible by console

parent 657e7321
No related branches found
No related tags found
3 merge requests!488Merge in next and don't billboard papersprites in GL,!408EXECVERSION adjustments (config updater),!402Update code versions to 2.1.22
...@@ -443,7 +443,7 @@ void Command_LoadConfig_f(void) ...@@ -443,7 +443,7 @@ void Command_LoadConfig_f(void)
FIL_ForceExtension(configfile, ".cfg"); FIL_ForceExtension(configfile, ".cfg");
// temporarily reset execversion to default // temporarily reset execversion to default
cv_execversion.flags &= ~CV_HIDEN; cv_execversion.flags = 0;
COM_BufInsertText(va("%s \"%s\"\n", cv_execversion.name, cv_execversion.defaultvalue)); COM_BufInsertText(va("%s \"%s\"\n", cv_execversion.name, cv_execversion.defaultvalue));
CV_InitFilterVar(); CV_InitFilterVar();
...@@ -452,7 +452,7 @@ void Command_LoadConfig_f(void) ...@@ -452,7 +452,7 @@ void Command_LoadConfig_f(void)
// don't filter anymore vars and don't let this convsvar be changed // don't filter anymore vars and don't let this convsvar be changed
COM_BufInsertText(va("%s \"%d\"\n", cv_execversion.name, EXECVERSION)); COM_BufInsertText(va("%s \"%d\"\n", cv_execversion.name, EXECVERSION));
cv_execversion.flags |= CV_HIDEN; cv_execversion.flags = CV_HIDEN;
} }
/** Saves the current configuration and loads another. /** Saves the current configuration and loads another.
...@@ -494,7 +494,7 @@ void M_FirstLoadConfig(void) ...@@ -494,7 +494,7 @@ void M_FirstLoadConfig(void)
// 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 = 0;
COM_BufInsertText(va("%s \"%s\"\n", cv_execversion.name, cv_execversion.defaultvalue)); COM_BufInsertText(va("%s \"%s\"\n", cv_execversion.name, cv_execversion.defaultvalue));
CV_InitFilterVar(); CV_InitFilterVar();
...@@ -504,7 +504,7 @@ void M_FirstLoadConfig(void) ...@@ -504,7 +504,7 @@ void M_FirstLoadConfig(void)
// don't filter anymore vars and don't let this convsvar be changed // don't filter anymore vars and don't let this convsvar be changed
COM_BufInsertText(va("%s \"%d\"\n", cv_execversion.name, EXECVERSION)); COM_BufInsertText(va("%s \"%d\"\n", cv_execversion.name, EXECVERSION));
cv_execversion.flags |= CV_HIDEN; cv_execversion.flags = CV_HIDEN;
// make sure I_Quit() will write back the correct config // make sure I_Quit() will write back the correct config
// (do not write back the config if it crash before) // (do not write back the config if it crash before)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment