From c7e778f66ceef6e05060f8e08e364e625bd50b52 Mon Sep 17 00:00:00 2001 From: Luke Street Date: Sat, 18 Apr 2020 17:53:27 -0400 Subject: [PATCH] Add Skip Splash Screens option --- hecl-gui/MainWindow.cpp | 5 +++++ hecl-gui/MainWindow.ui | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/hecl-gui/MainWindow.cpp b/hecl-gui/MainWindow.cpp index a6caf1b61..9f9ae6152 100644 --- a/hecl-gui/MainWindow.cpp +++ b/hecl-gui/MainWindow.cpp @@ -648,6 +648,11 @@ void MainWindow::initOptions() { hecl::CVarManager::instance()->findOrMakeCVar( "stateManager.logScripting"sv, "Prints object communication to the console", false, hecl::CVar::EFlags::ReadOnly | hecl::CVar::EFlags::Archive | hecl::CVar::EFlags::Game)); + initCheckboxOption(m_ui->skipSplashScreensBox, + // TODO centralize + hecl::CVarManager::instance()->findOrMakeCVar( + "tweak.game.SplashScreensDisabled"sv, "Skip splash screens on game startup", false, + hecl::CVar::EFlags::ReadOnly | hecl::CVar::EFlags::Archive | hecl::CVar::EFlags::Game)); m_launchOptionsModel.setStringList(QSettings().value(QStringLiteral("urde_arguments")).toStringList()); m_ui->launchOptionsList->setModel(&m_launchOptionsModel); diff --git a/hecl-gui/MainWindow.ui b/hecl-gui/MainWindow.ui index 0a9753137..a9e4d3562 100644 --- a/hecl-gui/MainWindow.ui +++ b/hecl-gui/MainWindow.ui @@ -367,6 +367,13 @@ Game + + + + Skip Splash Screens + + +