MCPcopy Create free account
hub / github.com/PenguLoader/PenguLoader / get_config_value

Function get_config_value

core/src/config.cc:141–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139}
140
141static std::string get_config_value(const char *key, const char *fallback)
142{
143 auto map = get_config_map();
144 auto it = map.find(key);
145 std::string value = fallback;
146
147 if (it != map.end())
148 value = it->second;
149
150 return value;
151}
152
153static bool get_config_value_bool(const char *key, bool fallback)
154{

Callers 2

plugins_dirMethod · 0.85
disabled_pluginsMethod · 0.85

Calls 1

get_config_mapFunction · 0.85

Tested by

no test coverage detected