From fc936c8879080489360f690d5592380aab42520d Mon Sep 17 00:00:00 2001 From: Reg Tiangha Date: Fri, 24 May 2024 09:22:25 -0600 Subject: [PATCH] lime3ds-gui: Add Layout tab to in-game settings --- src/lime_qt/configuration/configure.ui | 6 ++++++ src/lime_qt/configuration/configure_per_game.cpp | 4 ++++ src/lime_qt/configuration/configure_per_game.h | 2 ++ 3 files changed, 12 insertions(+) diff --git a/src/lime_qt/configuration/configure.ui b/src/lime_qt/configuration/configure.ui index 133b71c74..3252d36ba 100644 --- a/src/lime_qt/configuration/configure.ui +++ b/src/lime_qt/configuration/configure.ui @@ -97,6 +97,12 @@
configuration/configure_enhancements.h
1 + + ConfigureLayout + QWidget +
configuration/configure_layout.h
+ 1 +
ConfigureWeb QWidget diff --git a/src/lime_qt/configuration/configure_per_game.cpp b/src/lime_qt/configuration/configure_per_game.cpp index f8153fd19..9f832f98b 100644 --- a/src/lime_qt/configuration/configure_per_game.cpp +++ b/src/lime_qt/configuration/configure_per_game.cpp @@ -18,6 +18,7 @@ #include "lime_qt/configuration/configure_enhancements.h" #include "lime_qt/configuration/configure_general.h" #include "lime_qt/configuration/configure_graphics.h" +#include "lime_qt/configuration/configure_layout.h" #include "lime_qt/configuration/configure_per_game.h" #include "lime_qt/configuration/configure_system.h" #include "lime_qt/util/util.h" @@ -36,6 +37,7 @@ ConfigurePerGame::ConfigurePerGame(QWidget* parent, u64 title_id_, const QString audio_tab = std::make_unique(is_powered_on, this); general_tab = std::make_unique(this); enhancements_tab = std::make_unique(this); + layout_tab = std::make_unique(this); graphics_tab = std::make_unique(gl_renderer, physical_devices, is_powered_on, this); system_tab = std::make_unique(system, this); @@ -47,6 +49,7 @@ ConfigurePerGame::ConfigurePerGame(QWidget* parent, u64 title_id_, const QString ui->tabWidget->addTab(general_tab.get(), tr("General")); ui->tabWidget->addTab(system_tab.get(), tr("System")); ui->tabWidget->addTab(enhancements_tab.get(), tr("Enhancements")); + ui->tabWidget->addTab(layout_tab.get(), tr("Layout")); ui->tabWidget->addTab(graphics_tab.get(), tr("Graphics")); ui->tabWidget->addTab(audio_tab.get(), tr("Audio")); ui->tabWidget->addTab(debug_tab.get(), tr("Debug")); @@ -102,6 +105,7 @@ void ConfigurePerGame::ApplyConfiguration() { general_tab->ApplyConfiguration(); system_tab->ApplyConfiguration(); enhancements_tab->ApplyConfiguration(); + layout_tab->ApplyConfiguration(); graphics_tab->ApplyConfiguration(); audio_tab->ApplyConfiguration(); debug_tab->ApplyConfiguration(); diff --git a/src/lime_qt/configuration/configure_per_game.h b/src/lime_qt/configuration/configure_per_game.h index 358eaeef5..571c6d567 100644 --- a/src/lime_qt/configuration/configure_per_game.h +++ b/src/lime_qt/configuration/configure_per_game.h @@ -18,6 +18,7 @@ class System; class ConfigureAudio; class ConfigureGeneral; class ConfigureEnhancements; +class ConfigureLayout; class ConfigureGraphics; class ConfigureSystem; class ConfigureDebug; @@ -71,6 +72,7 @@ private: std::unique_ptr audio_tab; std::unique_ptr general_tab; std::unique_ptr enhancements_tab; + std::unique_ptr layout_tab; std::unique_ptr graphics_tab; std::unique_ptr system_tab; std::unique_ptr debug_tab;