MCPcopy Create free account
hub / github.com/MultiMC/Launcher / 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
143void VersionList::setName(const QString &name)
144{

Callers 5

onDownloadSucceededMethod · 0.45
downloadModsMethod · 0.45
selectCurrentMethod · 0.45
getMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected