MCPcopy Create free account
hub / github.com/Norbyte/bg3se / LoadConfig

Method LoadConfig

BG3Extender/Extender/Shared/ExtensionState.cpp:128–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126 bool LoadModConfig(Module const& mod, Document& json, ExtensionModConfig& config);
127
128 bool ExtensionStateBase::LoadConfig(Module const & mod, STDString const & configText, ExtensionModConfig & config)
129 {
130 Document root;
131 if (root.Parse(configText.data()).HasParseError()) {
132 OsiError("Unable to parse configuration for mod '" << mod.Info.Name << "'");
133 return false;
134 }
135
136 return LoadModConfig(mod, root, config);
137 }
138
139 std::optional<bool> GetConfigBool(Value const& node, std::string_view const& key)
140 {

Callers

nothing calls this directly

Calls 3

LoadModConfigFunction · 0.85
ParseMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected