MCPcopy Create free account
hub / github.com/NtQuery/Scylla / saveBooleanToConfigFile

Method saveBooleanToConfigFile

Scylla/ConfigurationHolder.cpp:152–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150}
151
152bool ConfigurationHolder::saveBooleanToConfigFile(const Configuration & configObject) const
153{
154 const WCHAR *boolValue = configObject.isTrue() ? L"1" : L"0";
155 BOOL ret = WritePrivateProfileString(CONFIG_FILE_SECTION_NAME, configObject.getName(), boolValue, configPath);
156 return !!ret;
157}
158
159bool ConfigurationHolder::loadConfig(Configuration & configObject)
160{

Callers

nothing calls this directly

Calls 2

isTrueMethod · 0.80
getNameMethod · 0.80

Tested by

no test coverage detected