diff options
author | bunnei <bunneidev@gmail.com> | 2018-03-27 04:25:13 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-03-27 05:02:35 +0200 |
commit | c97ff4460c87cc79977d3bd2448ba1cf79fefa1d (patch) | |
tree | 7681d5173a1143115d680d661b45b12283b4c169 | |
parent | config: Add setting for whether the system is docked or not. (diff) | |
download | yuzu-c97ff4460c87cc79977d3bd2448ba1cf79fefa1d.tar yuzu-c97ff4460c87cc79977d3bd2448ba1cf79fefa1d.tar.gz yuzu-c97ff4460c87cc79977d3bd2448ba1cf79fefa1d.tar.bz2 yuzu-c97ff4460c87cc79977d3bd2448ba1cf79fefa1d.tar.lz yuzu-c97ff4460c87cc79977d3bd2448ba1cf79fefa1d.tar.xz yuzu-c97ff4460c87cc79977d3bd2448ba1cf79fefa1d.tar.zst yuzu-c97ff4460c87cc79977d3bd2448ba1cf79fefa1d.zip |
-rw-r--r-- | src/yuzu/configuration/configure_general.cpp | 3 | ||||
-rw-r--r-- | src/yuzu/configuration/configure_general.ui | 20 |
2 files changed, 23 insertions, 0 deletions
diff --git a/src/yuzu/configuration/configure_general.cpp b/src/yuzu/configuration/configure_general.cpp index 92fd6ab02..e81161035 100644 --- a/src/yuzu/configuration/configure_general.cpp +++ b/src/yuzu/configuration/configure_general.cpp @@ -16,6 +16,7 @@ ConfigureGeneral::ConfigureGeneral(QWidget* parent) this->setConfiguration(); ui->cpu_core_combobox->setEnabled(!Core::System::GetInstance().IsPoweredOn()); + ui->is_docked->setEnabled(!Core::System::GetInstance().IsPoweredOn()); } ConfigureGeneral::~ConfigureGeneral() {} @@ -24,6 +25,7 @@ void ConfigureGeneral::setConfiguration() { ui->toggle_deepscan->setChecked(UISettings::values.gamedir_deepscan); ui->toggle_check_exit->setChecked(UISettings::values.confirm_before_closing); ui->cpu_core_combobox->setCurrentIndex(static_cast<int>(Settings::values.cpu_core)); + ui->is_docked->setChecked(Settings::values.is_docked); } void ConfigureGeneral::applyConfiguration() { @@ -31,5 +33,6 @@ void ConfigureGeneral::applyConfiguration() { UISettings::values.confirm_before_closing = ui->toggle_check_exit->isChecked(); Settings::values.cpu_core = static_cast<Settings::CpuCore>(ui->cpu_core_combobox->currentIndex()); + Settings::values.is_docked = ui->is_docked->isChecked(); Settings::Apply(); } diff --git a/src/yuzu/configuration/configure_general.ui b/src/yuzu/configuration/configure_general.ui index 573c4cb0e..35d3b26ad 100644 --- a/src/yuzu/configuration/configure_general.ui +++ b/src/yuzu/configuration/configure_general.ui @@ -71,6 +71,26 @@ </widget> </item> <item> + <widget class="QGroupBox" name="groupBox_4"> + <property name="title"> + <string>Emulation</string> + </property> + <layout class="QHBoxLayout" name="horizontalLayout_8"> + <item> + <layout class="QVBoxLayout" name="verticalLayout_6"> + <item> + <widget class="QCheckBox" name="is_docked"> + <property name="text"> + <string>Enable docked mode</string> + </property> + </widget> + </item> + </layout> + </item> + </layout> + </widget> + </item> + <item> <widget class="QGroupBox" name="groupBox_3"> <property name="title"> <string>Hotkeys</string> |