| 6318 | } |
| 6319 | |
| 6320 | void AS_SetConfigValueString(std::string key, std::string value) { |
| 6321 | if (key == "overall") { |
| 6322 | config.SetSettingsToPreset(value); |
| 6323 | config.ReloadStaticSettings(); |
| 6324 | config.ReloadDynamicSettings(); |
| 6325 | } else if (key == "difficulty_preset") { |
| 6326 | config.SetDifficultyPreset(value); |
| 6327 | config.ReloadDynamicSettings(); |
| 6328 | } else { |
| 6329 | config.GetRef(key) = value; |
| 6330 | config.ReloadDynamicSettings(); |
| 6331 | } |
| 6332 | } |
| 6333 | |
| 6334 | void AS_SetConfigValueBool(std::string key, bool value) { |
| 6335 | config.GetRef(key) = value; |
nothing calls this directly
no test coverage detected