| 81 | } |
| 82 | |
| 83 | int ScriptConfig::GetSetting(const std::string &name) const |
| 84 | { |
| 85 | const auto it = this->settings.find(name); |
| 86 | if (it == this->settings.end()) return this->info->GetSettingDefaultValue(name); |
| 87 | return it->second; |
| 88 | } |
| 89 | |
| 90 | void ScriptConfig::SetSetting(std::string_view name, int value) |
| 91 | { |
no test coverage detected