| 25 | } |
| 26 | |
| 27 | EffectSourceConfigPtr EffectSourceDatabase::effectSourceConfig(String const& kind) const { |
| 28 | auto k = kind.toLower(); |
| 29 | if (!m_sourceConfigs.contains(k)) |
| 30 | throw StarException(strf("Unknown effect source definition with kind '{}'.", kind)); |
| 31 | return m_sourceConfigs.get(k); |
| 32 | } |
| 33 | |
| 34 | EffectSourceConfig::EffectSourceConfig(Json const& config) { |
| 35 | m_kind = config.getString("kind"); |