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

Method findVersion

launcher/BaseVersionList.cpp:43–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43BaseVersionPtr BaseVersionList::findVersion(const QString &descriptor)
44{
45 for (int i = 0; i < count(); i++)
46 {
47 if (at(i)->descriptor() == descriptor)
48 return at(i);
49 }
50 return BaseVersionPtr();
51}
52
53BaseVersionPtr BaseVersionList::getRecommended() const
54{

Callers

nothing calls this directly

Calls 1

descriptorMethod · 0.45

Tested by

no test coverage detected