Merge with develop

--HG--
branch : compatibility-develop
This commit is contained in:
kervala 2016-07-26 18:23:35 +02:00
commit cacecebfff
4 changed files with 12 additions and 4 deletions

View file

@ -97,9 +97,11 @@ void CProfile::createShortcuts() const
QString icon; QString icon;
#ifdef Q_OS_WIN32 #ifdef Q_OS_WIN32
// under Windows, icon is included in executable
icon = executable; icon = executable;
#else #else
// TODO: Linux icon // icon is in the same directory as client
icon = s.getDirectory() + "/ryzom_client.png";
#endif #endif
if (desktopShortcut) if (desktopShortcut)
@ -453,6 +455,11 @@ QString CConfigFile::getMenuDirectory() const
bool CConfigFile::has64bitsOS() bool CConfigFile::has64bitsOS()
{ {
#ifdef Q_OS_WIN32
// 64 bits only supported under Vista and up
if (QSysInfo::windowsVersion() < QSysInfo::WV_VISTA) return false;
#endif
return QSysInfo::currentCpuArchitecture() == "x86_64"; return QSysInfo::currentCpuArchitecture() == "x86_64";
} }

View file

@ -54,7 +54,6 @@ CInstallDialog::CInstallDialog():QDialog()
updateDestinationText(); updateDestinationText();
// check whether OS architecture is 32 or 64 bits // check whether OS architecture is 32 or 64 bits
// TODO: 64 bits client only supported under Vista+
if (CConfigFile::has64bitsOS()) if (CConfigFile::has64bitsOS())
{ {
clientArchGroupBox->setVisible(true); clientArchGroupBox->setVisible(true);

View file

@ -51,7 +51,6 @@ CMigrateDialog::CMigrateDialog():QDialog()
updateDestinationText(); updateDestinationText();
// check whether OS architecture is 32 or 64 bits // check whether OS architecture is 32 or 64 bits
// TODO: 64 bits client only supported under Vista+
if (CConfigFile::has64bitsOS()) if (CConfigFile::has64bitsOS())
{ {
clientArchGroupBox->setVisible(true); clientArchGroupBox->setVisible(true);

View file

@ -718,6 +718,7 @@ void COperationDialog::copyInstaller()
QStringList filter; QStringList filter;
filter << "msvcp100.dll"; filter << "msvcp100.dll";
filter << "msvcr100.dll"; filter << "msvcr100.dll";
filter << "ryzom_installer.png";
CFilesCopier copier(this); CFilesCopier copier(this);
copier.setIncludeFilter(filter); copier.setIncludeFilter(filter);
@ -756,9 +757,11 @@ void COperationDialog::copyInstaller()
QString icon; QString icon;
#ifdef Q_OS_WIN32 #ifdef Q_OS_WIN32
// under Windows, icon is included in executable
icon = executable; icon = executable;
#else #else
// TODO: Linux icon // icon is in the same directory as installer
icon = config->getInstallationDirectory() + "/ryzom_installer.png";
#endif #endif
createLink(shortcut, name, executable, "", icon, ""); createLink(shortcut, name, executable, "", icon, "");