MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / readBool

Method readBool

source/ui/data/configFile.cpp:50–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50bool ConfigFile::readBool(BString name, bool defaultValue) {
51 BString value;
52 if (this->values.get(name, value)) {
53 return value!="0";
54 }
55 return defaultValue;
56}
57
58int ConfigFile::readInt(BString name, int defaultValue) {
59 BString value;

Callers 2

initMethod · 0.80
loadMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected