mirror of
https://github.com/redstrate/Astra.git
synced 2025-04-20 11:47:46 +00:00
Add DirectX version option
This commit is contained in:
parent
5d3dfb6ca2
commit
a1be2963ce
3 changed files with 19 additions and 1 deletions
|
@ -9,6 +9,7 @@
|
|||
#include <QGroupBox>
|
||||
#include <QMessageBox>
|
||||
#include <QProcess>
|
||||
#include <QComboBox>
|
||||
|
||||
#include "xivlauncher.h"
|
||||
|
||||
|
@ -19,6 +20,17 @@ SettingsWindow::SettingsWindow(LauncherWindow& window, QWidget* parent) : window
|
|||
auto layout = new QFormLayout(this);
|
||||
setLayout(layout);
|
||||
|
||||
auto directXCombo = new QComboBox();
|
||||
directXCombo->setCurrentIndex(window.settings.value("directx", 0).toInt());
|
||||
directXCombo->addItem("DirectX 11");
|
||||
directXCombo->addItem("DirectX 9");
|
||||
layout->addRow("DirectX Version", directXCombo);
|
||||
|
||||
connect(directXCombo, &QComboBox::currentIndexChanged, [=](int index) {
|
||||
this->window.settings.setValue("directx", directXCombo->currentIndex());
|
||||
this->window.useDX9 = directXCombo->currentIndex() == 1;
|
||||
});
|
||||
|
||||
#if defined(Q_OS_LINUX)
|
||||
auto wineBox = new QGroupBox("Wine Options");
|
||||
auto wineBoxLayout = new QFormLayout();
|
||||
|
|
|
@ -43,7 +43,12 @@ void LauncherWindow::launchGame(const LoginAuth auth) {
|
|||
QList<QString> arguments;
|
||||
|
||||
// now for the actual game...
|
||||
arguments.push_back(gamePath + "\\game\\ffxiv_dx11.exe");
|
||||
if(useDX9) {
|
||||
arguments.push_back(gamePath + "\\game\\ffxiv.exe");
|
||||
} else {
|
||||
arguments.push_back(gamePath + "\\game\\ffxiv_dx11.exe");
|
||||
}
|
||||
|
||||
arguments.push_back("DEV.DataPathType=1");
|
||||
arguments.push_back("DEV.UseSqPack=1");
|
||||
|
||||
|
|
|
@ -36,6 +36,7 @@ public:
|
|||
QString bootVersion, gameVersion;
|
||||
|
||||
bool useEsync, useGamescope, useGamemode;
|
||||
bool useDX9 = false;
|
||||
|
||||
void launchGame(const LoginAuth auth);
|
||||
void launchExecutable(const QStringList args);
|
||||
|
|
Loading…
Add table
Reference in a new issue