| 222 | } |
| 223 | |
| 224 | void MetaLayer::MergeConfigMap(const LayerOptions& Options) { |
| 225 | // Insert this layer's options, overlaying previous options that exist here |
| 226 | for (auto& it : Options) { |
| 227 | if (it.first == FEXCore::Config::ConfigOption::CONFIG_ENV || it.first == FEXCore::Config::ConfigOption::CONFIG_HOSTENV) { |
| 228 | LOGMAN_THROW_A_FMT(std::holds_alternative<DefaultValues::Type::StringArrayType>(it.second), "Tried to get config of invalid type!"); |
| 229 | MergeEnvironmentVariables(it.first, std::get<DefaultValues::Type::StringArrayType>(it.second)); |
| 230 | } else { |
| 231 | OptionMap.insert_or_assign(it.first, it.second); |
| 232 | } |
| 233 | } |
| 234 | } |
| 235 | |
| 236 | void Initialize() { |
| 237 | AddLayer(fextl::make_unique<MetaLayer>(FEXCore::Config::LayerType::LAYER_TOP)); |
nothing calls this directly
no outgoing calls
no test coverage detected