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

Method getVersionList

launcher/minecraft/Component.cpp:87–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87std::shared_ptr<class Meta::VersionList> Component::getVersionList() const
88{
89 // FIXME: what if the metadata index isn't loaded yet?
90 if(APPLICATION->metadataIndex()->hasUid(m_uid))
91 {
92 return APPLICATION->metadataIndex()->get(m_uid);
93 }
94 return nullptr;
95}
96
97int Component::getOrder()
98{

Callers 1

Calls 3

hasUidMethod · 0.80
metadataIndexMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected