MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / resetSetting

Method resetSetting

launcher/settings/INISettingsObject.cpp:84–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84void INISettingsObject::resetSetting(const Setting &setting)
85{
86 // if we have the setting, remove all the synonyms. ALL OF THEM
87 if (contains(setting.id()))
88 {
89 for(auto iter: setting.configKeys())
90 m_ini.remove(iter);
91 doSave();
92 }
93}
94
95QVariant INISettingsObject::retrieveValue(const Setting &setting)
96{

Callers

nothing calls this directly

Calls 3

configKeysMethod · 0.80
idMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected