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

Method getReleaseDateTime

launcher/minecraft/Component.cpp:167–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165 return m_parent->patchFilePathForUid(m_uid);
166}
167QDateTime Component::getReleaseDateTime()
168{
169 if(m_metaVersion)
170 {
171 return m_metaVersion->time();
172 }
173 auto vfile = getVersionFile();
174 if(vfile)
175 {
176 return vfile->releaseTime;
177 }
178 // FIXME: fake
179 return QDateTime::currentDateTime();
180}
181
182bool Component::isEnabled()
183{

Callers 1

shouldDisplayMethod · 0.80

Calls 1

timeMethod · 0.80

Tested by

no test coverage detected