MCPcopy Create free account
hub / github.com/FreesmTeam/FreesmLauncher / getVersion

Method getVersion

launcher/meta/VersionList.cpp:147–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147Version::Ptr VersionList::getVersion(const QString& version)
148{
149 Version::Ptr out = m_lookup.value(version, nullptr);
150 if (!out) {
151 out = std::make_shared<Version>(m_uid, version);
152 m_lookup[version] = out;
153 setupAddedVersion(m_versions.size(), out);
154 m_versions.append(out);
155 }
156 return out;
157}
158
159bool VersionList::hasVersion(QString version) const
160{

Callers 7

selectCurrentMethod · 0.45
mcVersionsFunction · 0.45
confirmMethod · 0.45
getMethod · 0.45
loadVersionMethod · 0.45

Calls 3

valueMethod · 0.80
appendMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected