diff --git a/src/swiftlauncher/swiftlauncher.cpp b/src/swiftlauncher/swiftlauncher.cpp index 4bd51cb74..8b857d427 100644 --- a/src/swiftlauncher/swiftlauncher.cpp +++ b/src/swiftlauncher/swiftlauncher.cpp @@ -320,7 +320,8 @@ bool CSwiftLauncher::setSwiftCoreExecutable() if (!sGui || sGui->isShuttingDown()) { return false; } this->saveSetup(); QStringList args = ui->comp_DBusSelector->getDBusCmdLineArgs(); - if (ui->cb_resetWindow->isChecked()) { args.append("--resetsize"); } + if (ui->cb_ResetWindow->isChecked()) { args.append("--resetsize"); } + if (ui->cb_DisableCoreAudio->isChecked()) { args.append("--noaudio"); } m_executableArgs = sGui->argumentsJoined(args); m_executable = CDirectoryUtils::executableFilePath(CBuildConfig::swiftCoreExecutableName()); @@ -355,9 +356,15 @@ bool CSwiftLauncher::setSwiftGuiExecutable() "--window", CEnableForFramelessWindow::windowModeToString(getWindowMode()) }; - if (ui->cb_resetWindow->isChecked()) { args << "--resetsize"; } - if (!this->isStandaloneGuiSelected()) + if (ui->cb_ResetWindow->isChecked()) { args << "--resetsize"; } + if (this->isStandaloneGuiSelected()) { + if (ui->cb_DisableSaAfv->isChecked()) { args.append("--noaudio"); } + } + else + { + if (ui->cb_DisableGUIAfv->isChecked()) { args.append("--noaudio"); } + const QString dBus(ui->comp_DBusSelector->getDBusAddress()); args.append(ui->comp_DBusSelector->getDBusCmdLineArgs()); this->saveSetup(); @@ -601,6 +608,8 @@ void CSwiftLauncher::onCoreModeReleased() const bool sa = ui->rb_SwiftStandalone->isChecked(); ui->comp_DBusSelector->setEnabled(!sa); ui->tb_SwiftCore->setEnabled(!sa); + ui->gb_AudioSa->setEnabled(sa); + ui->gb_AudioDistributed->setEnabled(!sa); this->saveSetup(); } diff --git a/src/swiftlauncher/swiftlauncher.ui b/src/swiftlauncher/swiftlauncher.ui index bd3a9fb50..26f21c235 100644 --- a/src/swiftlauncher/swiftlauncher.ui +++ b/src/swiftlauncher/swiftlauncher.ui @@ -88,7 +88,7 @@ - 4 + 2 6 @@ -98,8 +98,8 @@ 0 0 - 135 - 109 + 392 + 309 @@ -153,8 +153,8 @@ 0 0 - 163 - 52 + 392 + 309 @@ -218,8 +218,8 @@ 0 0 - 233 - 166 + 381 + 332 @@ -251,17 +251,46 @@ - - - - GUI and core (distributed) + + + + + 200 + 0 + - - bg_CoreMode - + + Audio distributed + + + + + + disable core audio (AFV) + + + + + + + disable GUI audio (AFV) + + + + - + + + + + + + :/launcher/icons/swiftNormal61x100.png + + + + Qt::Vertical @@ -274,16 +303,39 @@ - + + + + GUI and core (distributed) + + + bg_CoreMode + + + + + + + standalone + + + true + + + bg_CoreMode + + + + - 225 + 200 0 - DBus (swift core/GUI, NOT XSwiftBus) + DBus (core to GUI) @@ -320,27 +372,20 @@ - - - - + + + + Audio - - :/launcher/icons/swiftNormal61x100.png - - - - - - - standalone - - - true - - - bg_CoreMode - + + + + + disable audio (AFV) + + + + @@ -350,8 +395,8 @@ 0 0 - 98 - 237 + 392 + 309 @@ -432,8 +477,8 @@ 0 0 - 98 - 31 + 376 + 126 @@ -755,7 +800,7 @@ - + reset window @@ -865,17 +910,25 @@ - rb_WindowNormal - rb_WindowFrameless rb_SwiftStandalone rb_SwiftDistributed - sa_DataUpdates + cb_ResetWindow tb_SwiftGui tb_SwiftCore tb_SwiftMappingTool - tb_Database tb_ConfigurationWizard + tb_Database + sa_DataUpdates + pb_Log + pb_LogDir + pb_DumpDir + pb_P3DConfigDirs + pb_FSXConfigDirs + tw_LatestNewsAbout + tbr_LatestNews tb_BackToMain + rb_WindowNormal + rb_WindowFrameless