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

Method getVersionFile

launcher/minecraft/Component.cpp:106–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106std::shared_ptr<class VersionFile> Component::getVersionFile() const
107{
108 if(m_metaVersion)
109 {
110 if(!m_metaVersion->isLoaded())
111 {
112 m_metaVersion->load(Net::Mode::Online);
113 }
114 return m_metaVersion->data();
115 }
116 else
117 {
118 return m_file;
119 }
120}
121
122std::shared_ptr<class Meta::VersionList> Component::getVersionList() const
123{

Callers 2

Calls 3

isLoadedMethod · 0.45
loadMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected