diff options
| author | 2018-01-11 19:21:20 -0700 | |
|---|---|---|
| committer | 2018-01-12 19:11:03 -0700 | |
| commit | ebf9a784a9f7f4148a669dbb39e7cd50df779a14 (patch) | |
| tree | d585685a1c0a34b903af1d086d62560bf56bb29f /src/citra_qt/configuration/configure_general.cpp | |
| parent | config: Default CPU core to Unicorn. (diff) | |
| download | yuzu-ebf9a784a9f7f4148a669dbb39e7cd50df779a14.tar.gz yuzu-ebf9a784a9f7f4148a669dbb39e7cd50df779a14.tar.xz yuzu-ebf9a784a9f7f4148a669dbb39e7cd50df779a14.zip | |
Massive removal of unused modules
Diffstat (limited to 'src/citra_qt/configuration/configure_general.cpp')
| -rw-r--r-- | src/citra_qt/configuration/configure_general.cpp | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/src/citra_qt/configuration/configure_general.cpp b/src/citra_qt/configuration/configure_general.cpp deleted file mode 100644 index 0de27aa8b..000000000 --- a/src/citra_qt/configuration/configure_general.cpp +++ /dev/null | |||
| @@ -1,47 +0,0 @@ | |||
| 1 | // Copyright 2016 Citra Emulator Project | ||
| 2 | // Licensed under GPLv2 or any later version | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | #include "citra_qt/configuration/configure_general.h" | ||
| 6 | #include "citra_qt/ui_settings.h" | ||
| 7 | #include "core/core.h" | ||
| 8 | #include "core/settings.h" | ||
| 9 | #include "ui_configure_general.h" | ||
| 10 | |||
| 11 | ConfigureGeneral::ConfigureGeneral(QWidget* parent) | ||
| 12 | : QWidget(parent), ui(new Ui::ConfigureGeneral) { | ||
| 13 | |||
| 14 | ui->setupUi(this); | ||
| 15 | |||
| 16 | for (auto theme : UISettings::themes) { | ||
| 17 | ui->theme_combobox->addItem(theme.first, theme.second); | ||
| 18 | } | ||
| 19 | |||
| 20 | this->setConfiguration(); | ||
| 21 | |||
| 22 | ui->cpu_core_combobox->setEnabled(!Core::System::GetInstance().IsPoweredOn()); | ||
| 23 | } | ||
| 24 | |||
| 25 | ConfigureGeneral::~ConfigureGeneral() {} | ||
| 26 | |||
| 27 | void ConfigureGeneral::setConfiguration() { | ||
| 28 | ui->toggle_deepscan->setChecked(UISettings::values.gamedir_deepscan); | ||
| 29 | ui->toggle_check_exit->setChecked(UISettings::values.confirm_before_closing); | ||
| 30 | |||
| 31 | // The first item is "auto-select" with actual value -1, so plus one here will do the trick | ||
| 32 | ui->region_combobox->setCurrentIndex(Settings::values.region_value + 1); | ||
| 33 | |||
| 34 | ui->theme_combobox->setCurrentIndex(ui->theme_combobox->findData(UISettings::values.theme)); | ||
| 35 | ui->cpu_core_combobox->setCurrentIndex(static_cast<int>(Settings::values.cpu_core)); | ||
| 36 | } | ||
| 37 | |||
| 38 | void ConfigureGeneral::applyConfiguration() { | ||
| 39 | UISettings::values.gamedir_deepscan = ui->toggle_deepscan->isChecked(); | ||
| 40 | UISettings::values.confirm_before_closing = ui->toggle_check_exit->isChecked(); | ||
| 41 | UISettings::values.theme = | ||
| 42 | ui->theme_combobox->itemData(ui->theme_combobox->currentIndex()).toString(); | ||
| 43 | Settings::values.region_value = ui->region_combobox->currentIndex() - 1; | ||
| 44 | Settings::values.cpu_core = | ||
| 45 | static_cast<Settings::CpuCore>(ui->cpu_core_combobox->currentIndex()); | ||
| 46 | Settings::Apply(); | ||
| 47 | } | ||