Warn portable users if they download the wrong version

This commit is contained in:
Cameron Gutman
2018-09-22 14:16:48 -07:00
parent 97e5acecd7
commit 926b192722
3 changed files with 25 additions and 0 deletions

View File

@@ -89,6 +89,15 @@ bool StreamingPreferences::isRunningWayland()
return qgetenv("XDG_SESSION_TYPE") == QByteArray("wayland");
}
bool StreamingPreferences::isWow64()
{
#ifdef Q_OS_WIN32
return QSysInfo::currentCpuArchitecture() != QSysInfo::buildCpuArchitecture();
#else
return false;
#endif
}
int StreamingPreferences::getMaximumStreamingFrameRate()
{
// Never let the maximum drop below 60 FPS