MCPcopy Create free account
hub / github.com/ModOrganizer2/modorganizer / getVersion

Method getVersion

src/envmodule.cpp:230–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228}
229
230QString Module::getVersion(const VS_FIXEDFILEINFO& fi) const
231{
232 if (fi.dwSignature == 0) {
233 return {};
234 }
235
236 const DWORD major = (fi.dwFileVersionMS >> 16) & 0xffff;
237 const DWORD minor = (fi.dwFileVersionMS >> 0) & 0xffff;
238 const DWORD maintenance = (fi.dwFileVersionLS >> 16) & 0xffff;
239 const DWORD build = (fi.dwFileVersionLS >> 0) & 0xffff;
240
241 if (major == 0 && minor == 0 && maintenance == 0 && build == 0) {
242 return {};
243 }
244
245 return QString("%1.%2.%3.%4").arg(major).arg(minor).arg(maintenance).arg(build);
246}
247
248QDateTime Module::getTimestamp(const VS_FIXEDFILEINFO& fi) const
249{

Callers 6

updateWindowTitleMethod · 0.45
aboutMethod · 0.45
processUpdatesMethod · 0.45
actionEndorseMOMethod · 0.45
actionWontEndorseMOMethod · 0.45
appVersionMethod · 0.45

Calls 1

QStringClass · 0.85

Tested by

no test coverage detected