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

Function get_config_value_bool

core/src/config.cc:153–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151}
152
153static bool get_config_value_bool(const char *key, bool fallback)
154{
155 auto map = get_config_map();
156 auto it = map.find(key);
157 bool value = fallback;
158
159 if (it != map.end())
160 {
161 if (it->second == "0" || it->second == "false")
162 value = false;
163 else if (it->second == "1" || it->second == "true")
164 value = true;
165 }
166
167 return value;
168}
169
170static int get_config_value_int(const char *key, int fallback)
171{

Callers 8

use_hotkeysFunction · 0.85
optimized_clientFunction · 0.85
super_potatoFunction · 0.85
silent_modeFunction · 0.85
isecure_modeFunction · 0.85
use_devtoolsFunction · 0.85
use_riotclientFunction · 0.85
use_proxyFunction · 0.85

Calls 1

get_config_mapFunction · 0.85

Tested by

no test coverage detected