mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-08 17:13:57 -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 QSysInfo::productVersion().split(".")[0].toInt();
|
||||
};
|
||||
|
||||
|
|
@ -75,15 +74,10 @@ bool ReleaseChannel::downloadMatchesCurrentOS(const QString &fileName)
|
|||
return rel_maj == sys_maj;
|
||||
|
||||
#elif defined(Q_OS_WIN)
|
||||
#if Q_PROCESSOR_WORDSIZE == 8 // 64-bit
|
||||
const QString &version = QSysInfo::productVersion();
|
||||
if (version.startsWith("10")) {
|
||||
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
|
||||
Q_UNUSED(fileName);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue