mirror of
https://github.com/ioquake/launch.git
synced 2025-04-20 14:00:46 +00:00
Windows: enclose the ioq3 path in quotes instead of escaping individual spaces.
This commit is contained in:
parent
f1e8bbe2de
commit
bad8358d46
1 changed files with 1 additions and 2 deletions
|
@ -25,8 +25,7 @@ void ioLaunch::on_btnLaunch_clicked()
|
|||
msg.setText("Please select your Quake3 directory");
|
||||
msg.exec();
|
||||
QString path = QFileDialog::getExistingDirectory (this, tr("Directory"), directory.path());
|
||||
path.replace(" ", "\" \"");
|
||||
ioq3 = path + "\\ioquake3.x86.exe +set r_mode -1";
|
||||
ioq3 = QString("\"") + path + QDir::separator() + "ioquake3.x86.exe\" +set r_mode -1";
|
||||
}
|
||||
#elif defined Q_OS_MAC
|
||||
ioq3 = "open -a ioquake3 --args +set r_mode -1";
|
||||
|
|
Loading…
Reference in a new issue