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

Method retrieveValue

launcher/settings/INISettingsObject.cpp:95–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95QVariant INISettingsObject::retrieveValue(const Setting &setting)
96{
97 // if we have the setting, return value of the first matching synonym
98 if (contains(setting.id()))
99 {
100 for(auto iter: setting.configKeys())
101 {
102 if(m_ini.contains(iter))
103 return m_ini[iter];
104 }
105 }
106 return QVariant();
107}

Callers 1

getMethod · 0.80

Calls 3

configKeysMethod · 0.80
idMethod · 0.45
containsMethod · 0.45

Tested by

no test coverage detected