MCPcopy Create free account
hub / github.com/FEX-Emu/FEX / MergeConfigMap

Method MergeConfigMap

FEXCore/Source/Interface/Config/Config.cpp:224–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222}
223
224void 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
236void Initialize() {
237 AddLayer(fextl::make_unique<MetaLayer>(FEXCore::Config::LayerType::LAYER_TOP));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected