Options redesign; Rumble intensity; Dark fix; Remove OGL patches

This commit is contained in:
nastys
2021-08-11 18:25:15 +02:00
parent 389d8f2b5c
commit 3b0338a5ba
11 changed files with 773 additions and 534 deletions
@@ -23,12 +23,12 @@ namespace TLAC::FileSystem
return found;
}
int ConfigFile::GetIntegerValue(const std::string& key)
int ConfigFile::GetIntegerValue(const std::string& key, int defaultval)
{
auto pair = ConfigMap.find(key);
bool found = pair != ConfigMap.end();
return found ? atoi(pair->second.c_str()) : 0;
return found ? atoi(pair->second.c_str()) : defaultval;
}
bool ConfigFile::GetBooleanValue(const std::string& key)