summaryrefslogtreecommitdiff
path: root/libre/openmw/disable_wizard.patch
diff options
context:
space:
mode:
Diffstat (limited to 'libre/openmw/disable_wizard.patch')
-rw-r--r--libre/openmw/disable_wizard.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/libre/openmw/disable_wizard.patch b/libre/openmw/disable_wizard.patch
new file mode 100644
index 000000000..f9d4a4d50
--- /dev/null
+++ b/libre/openmw/disable_wizard.patch
@@ -0,0 +1,36 @@
+diff --git a/apps/launcher/CMakeLists.txt b/apps/launcher/CMakeLists.txt
+index bfc08a7..031f989 100644
+--- a/apps/launcher/CMakeLists.txt
++++ b/apps/launcher/CMakeLists.txt
+@@ -119,4 +119,8 @@ if (BUILD_WITH_CODE_COVERAGE)
+ target_link_libraries(openmw-launcher gcov)
+ endif()
+
+-
++if (BUILD_WIZARD)
++ add_definitions(-DBUILD_WIZARD_ENABLED=1)
++else()
++ add_definitions(-DBUILD_WIZARD_ENABLED=0)
++endif()
+diff --git a/apps/launcher/maindialog.cpp b/apps/launcher/maindialog.cpp
+index 2982a30..4d286c7 100644
+--- a/apps/launcher/maindialog.cpp
++++ b/apps/launcher/maindialog.cpp
+@@ -148,7 +148,7 @@ Launcher::FirstRunDialogResult Launcher::MainDialog::showFirstRunDialog()
+ {
+ if (!setupLauncherSettings())
+ return FirstRunDialogResultFailure;
+-
++if (BUILD_WIZARD_ENABLED) // parabola patch - disable wizard
+ if (mLauncherSettings.value(QString("General/firstrun"), QString("true")) == QLatin1String("true"))
+ {
+ QMessageBox msgBox;
+@@ -385,7 +385,7 @@ bool Launcher::MainDialog::setupGameData()
+
+ QAbstractButton *wizardButton =
+ msgBox.addButton(tr("Run &Installation Wizard..."), QMessageBox::ActionRole);
+-
++if (!BUILD_WIZARD_ENABLED) msgBox.removeButton(wizardButton) ; // parabola patch - disable wizard
+ msgBox.exec();
+
+ if (msgBox.clickedButton() == wizardButton)