add conditions on BSD Unix

This commit is contained in:
Alexey Loginov 2019-07-08 17:01:18 +03:00
parent c97ffc4715
commit c10d7d1af9
3 changed files with 4 additions and 4 deletions

View File

@ -54,7 +54,7 @@ void GuiPreferencesDialog::initLanguageCombo(){
#ifdef Q_OS_WIN32
QApplication::applicationDirPath() + "/translations/";
#endif
#ifdef Q_OS_LINUX
#if defined (Q_OS_LINUX) || defined (Q_OS_UNIX)
QApplication::applicationDirPath() + "/../share/games/" + QSTR_APPNAME + "/translations/";
#endif
#ifdef Q_OS_DARWIN

View File

@ -133,7 +133,7 @@ QtWindow::QtWindow()
m_song->setLatencyFix(m_settings->value("Midi/Latency", 0).toInt());
#ifdef Q_OS_LINUX
#if defined (Q_OS_LINUX) || defined (Q_OS_UNIX)
m_glWidget->m_cfg_openGlOptimise = 2; // two is full GlOptimise
#else
m_glWidget->m_cfg_openGlOptimise = 1; // 1 is full GlOptimise
@ -781,7 +781,7 @@ void QtWindow::refreshTranslate(){
#ifdef Q_OS_WIN32
QApplication::applicationDirPath() + "/translations/";
#endif
#ifdef Q_OS_LINUX
#if defined (Q_OS_LINUX) || defined (Q_OS_UNIX)
QApplication::applicationDirPath() + "/../share/games/" + QSTR_APPNAME + "/translations/";
#endif
#ifdef Q_OS_DARWIN

View File

@ -425,7 +425,7 @@ void CSettings::unzipBoosterMusicBooks()
if (!QFile::exists(resourceDir + ZIPFILENAME))
{
#ifdef Q_OS_LINUX
#if defined (Q_OS_LINUX) || defined (Q_OS_UNIX)
resourceDir = QApplication::applicationDirPath() + "/../share/games/" + QSTR_APPNAME + "/music/";
#endif
#ifdef Q_OS_DARWIN