Remove many unused variables and unused setting files (#4607)

* Remove many unused variables and unused setting files

Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com>

* Remove a few more dead config vars

Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com>

* fix android test_ConfigureSettings_DefaultValues_SetsValues

Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com>
This commit is contained in:
Artur K
2021-10-13 00:06:15 +02:00
committed by GitHub
parent f34811c373
commit 80db67e90a
71 changed files with 21 additions and 2800 deletions
-21
View File
@@ -1273,17 +1273,6 @@ AZ_POP_DISABLE_WARNING
//Load config files
//////////////////////////////////////////////////////////////////////////
int curSpecVal = 0;
ICVar* pSysSpecCVar = gEnv->pConsole->GetCVar("r_GraphicsQuality");
if (gEnv->pSystem->IsDevMode())
{
if (pSysSpecCVar && pSysSpecCVar->GetFlags() & VF_WASINCONFIG)
{
curSpecVal = pSysSpecCVar->GetIVal();
pSysSpecCVar->SetFlags(pSysSpecCVar->GetFlags() | VF_SYSSPEC_OVERWRITE);
}
}
// tools may not interact with @user@
if (!gEnv->IsInToolMode())
{
@@ -1293,16 +1282,6 @@ AZ_POP_DISABLE_WARNING
}
}
// If sys spec variable was specified, is not 0, and we are in devmode restore the value from before loading game.cfg
// This enables setting of a specific sys_spec outside menu and game.cfg
if (gEnv->pSystem->IsDevMode())
{
if (pSysSpecCVar && curSpecVal && curSpecVal != pSysSpecCVar->GetIVal())
{
pSysSpecCVar->Set(curSpecVal);
}
}
{
// We have to load this file again since first time we did it without devmode
LoadConfiguration(m_systemConfigName.c_str());