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

Method getSetting

launcher/settings/SettingsObject.cpp:82–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82std::shared_ptr<Setting> SettingsObject::getSetting(const QString &id) const
83{
84 // Make sure there is a setting with the given ID.
85 if (!m_settings.contains(id))
86 return NULL;
87
88 return m_settings[id];
89}
90
91QVariant SettingsObject::get(const QString &id) const
92{

Callers 5

BaseInstanceMethod · 0.80
getConsoleMaxLinesMethod · 0.80
ApplicationMethod · 0.80
loadSpecificSettingsMethod · 0.80

Calls 1

containsMethod · 0.45

Tested by

no test coverage detected