| 264 | } |
| 265 | |
| 266 | int ScriptInfo::GetSettingDefaultValue(const std::string &name) const |
| 267 | { |
| 268 | for (const auto &item : this->config_list) { |
| 269 | if (item.name != name) continue; |
| 270 | return item.default_value; |
| 271 | } |
| 272 | |
| 273 | /* There is no such setting */ |
| 274 | return -1; |
| 275 | } |