From c1e80ab5027402915ab21188ee77de8223252b20 Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Mon, 24 Mar 2014 15:06:49 -0500 Subject: [PATCH] Fix launching ioq3 on Linux Q_OS_X11 does not exist (it was a Qt documentation error). Q_OS_UNIX is also defined on Mac, so move Unix block after Mac. There is a specific Q_OS_LINUX, but it's a general Unix style command. Also added error message for unhandled platforms. --- mainwindow.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index d2fdcb1..748a203 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -27,11 +27,12 @@ void ioLaunch::on_btnLaunch_clicked() path.replace(" ", "\" \""); ioq3 = path + "\\ioquake3.x86.exe +set r_mode -1"; } - -#elif defined Q_OS_X11 - ioq3 = "ioquake3 +set r_mode -1"; #elif defined Q_OS_MAC ioq3 = "open -a ioquake3 --args +set r_mode -1"; +#elif defined Q_OS_UNIX + ioq3 = "ioquake3 +set r_mode -1"; +#else + #error "Unsupported platform" #endif