MCPcopy Create free account
hub / github.com/MultiMC/Launcher / findVersion

Method findVersion

launcher/BaseVersionList.cpp:23–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23BaseVersionPtr BaseVersionList::findVersion(const QString &descriptor)
24{
25 for (int i = 0; i < count(); i++)
26 {
27 if (at(i)->descriptor() == descriptor)
28 return at(i);
29 }
30 return BaseVersionPtr();
31}
32
33BaseVersionPtr BaseVersionList::getRecommended() const
34{

Callers

nothing calls this directly

Calls 1

descriptorMethod · 0.45

Tested by

no test coverage detected