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

Method getReleaseDateTime

launcher/minecraft/Component.cpp:132–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130 return m_parent->patchFilePathForUid(m_uid);
131}
132QDateTime Component::getReleaseDateTime()
133{
134 if(m_metaVersion)
135 {
136 return m_metaVersion->time();
137 }
138 auto vfile = getVersionFile();
139 if(vfile)
140 {
141 return vfile->releaseTime;
142 }
143 // FIXME: fake
144 return QDateTime::currentDateTime();
145}
146
147bool Component::isEnabled()
148{

Callers 2

shouldDisplayMethod · 0.80
executeTaskMethod · 0.80

Calls 1

timeMethod · 0.80

Tested by

no test coverage detected