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

Method getVersion

launcher/meta/VersionList.cpp:132–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132VersionPtr VersionList::getVersion(const QString &version)
133{
134 VersionPtr out = m_lookup.value(version, nullptr);
135 if(!out)
136 {
137 out = std::make_shared<Version>(m_uid, version);
138 m_lookup[version] = out;
139 }
140 return out;
141}
142
143bool VersionList::hasVersion(QString version) const
144{

Callers 5

getComponentVersionFunction · 0.45
selectCurrentMethod · 0.45
mcVersionsFunction · 0.45
getMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected