Add Skip Splash Screens option

This commit is contained in:
Luke Street 2020-04-18 17:53:27 -04:00
parent dbeb871336
commit c7e778f66c
2 changed files with 12 additions and 0 deletions

View File

@ -648,6 +648,11 @@ void MainWindow::initOptions() {
hecl::CVarManager::instance()->findOrMakeCVar( hecl::CVarManager::instance()->findOrMakeCVar(
"stateManager.logScripting"sv, "Prints object communication to the console", false, "stateManager.logScripting"sv, "Prints object communication to the console", false,
hecl::CVar::EFlags::ReadOnly | hecl::CVar::EFlags::Archive | hecl::CVar::EFlags::Game)); 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_launchOptionsModel.setStringList(QSettings().value(QStringLiteral("urde_arguments")).toStringList());
m_ui->launchOptionsList->setModel(&m_launchOptionsModel); m_ui->launchOptionsList->setModel(&m_launchOptionsModel);

View File

@ -367,6 +367,13 @@
<string>Game</string> <string>Game</string>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout_2"> <layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QCheckBox" name="skipSplashScreensBox">
<property name="text">
<string>Skip Splash Screens</string>
</property>
</widget>
</item>
<item> <item>
<widget class="QCheckBox" name="developerModeBox"> <widget class="QCheckBox" name="developerModeBox">
<property name="text"> <property name="text">