mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-10 12:23:58 -07:00
no extra 64bit logic needed
This commit is contained in:
parent
d90e5263e0
commit
69dd6b1337
1 changed files with 0 additions and 6 deletions
|
|
@ -65,7 +65,6 @@ bool ReleaseChannel::downloadMatchesCurrentOS(const QString &fileName)
|
||||||
return 13;
|
return 13;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return QSysInfo::productVersion().split(".")[0].toInt();
|
return QSysInfo::productVersion().split(".")[0].toInt();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -75,15 +74,10 @@ bool ReleaseChannel::downloadMatchesCurrentOS(const QString &fileName)
|
||||||
return rel_maj == sys_maj;
|
return rel_maj == sys_maj;
|
||||||
|
|
||||||
#elif defined(Q_OS_WIN)
|
#elif defined(Q_OS_WIN)
|
||||||
#if Q_PROCESSOR_WORDSIZE == 8 // 64-bit
|
|
||||||
const QString &version = QSysInfo::productVersion();
|
const QString &version = QSysInfo::productVersion();
|
||||||
if (version.startsWith("10")) {
|
if (version.startsWith("10")) {
|
||||||
return fileName.contains("Win10");
|
return fileName.contains("Win10");
|
||||||
}
|
}
|
||||||
#else
|
|
||||||
Q_UNUSED(fileName);
|
|
||||||
return false;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#else // If the OS doesn't fit one of the above #defines, then it will never match
|
#else // If the OS doesn't fit one of the above #defines, then it will never match
|
||||||
Q_UNUSED(fileName);
|
Q_UNUSED(fileName);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue