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

Method getVersionFile

launcher/minecraft/Component.cpp:71–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71std::shared_ptr<class VersionFile> Component::getVersionFile() const
72{
73 if(m_metaVersion)
74 {
75 if(!m_metaVersion->isLoaded())
76 {
77 m_metaVersion->load(Net::Mode::Online);
78 }
79 return m_metaVersion->data();
80 }
81 else
82 {
83 return m_file;
84 }
85}
86
87std::shared_ptr<class Meta::VersionList> Component::getVersionList() const
88{

Callers 2

Calls 3

isLoadedMethod · 0.45
loadMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected