diff options
Diffstat (limited to 'src/citra_qt/configure_system.cpp')
| -rw-r--r-- | src/citra_qt/configure_system.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/citra_qt/configure_system.cpp b/src/citra_qt/configure_system.cpp index 4f0d4dbfe..55d964242 100644 --- a/src/citra_qt/configure_system.cpp +++ b/src/citra_qt/configure_system.cpp | |||
| @@ -8,6 +8,7 @@ | |||
| 8 | 8 | ||
| 9 | #include "core/hle/service/fs/archive.h" | 9 | #include "core/hle/service/fs/archive.h" |
| 10 | #include "core/hle/service/cfg/cfg.h" | 10 | #include "core/hle/service/cfg/cfg.h" |
| 11 | #include "core/system.h" | ||
| 11 | 12 | ||
| 12 | static const std::array<int, 12> days_in_month = {{ | 13 | static const std::array<int, 12> days_in_month = {{ |
| 13 | 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 | 14 | 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 |
| @@ -17,6 +18,7 @@ ConfigureSystem::ConfigureSystem(QWidget *parent) : | |||
| 17 | QWidget(parent), | 18 | QWidget(parent), |
| 18 | ui(new Ui::ConfigureSystem) { | 19 | ui(new Ui::ConfigureSystem) { |
| 19 | ui->setupUi(this); | 20 | ui->setupUi(this); |
| 21 | this->setConfiguration(); | ||
| 20 | 22 | ||
| 21 | connect(ui->combo_birthmonth, SIGNAL(currentIndexChanged(int)), SLOT(updateBirthdayComboBox(int))); | 23 | connect(ui->combo_birthmonth, SIGNAL(currentIndexChanged(int)), SLOT(updateBirthdayComboBox(int))); |
| 22 | } | 24 | } |
| @@ -24,8 +26,8 @@ ConfigureSystem::ConfigureSystem(QWidget *parent) : | |||
| 24 | ConfigureSystem::~ConfigureSystem() { | 26 | ConfigureSystem::~ConfigureSystem() { |
| 25 | } | 27 | } |
| 26 | 28 | ||
| 27 | void ConfigureSystem::setConfiguration(bool emulation_running) { | 29 | void ConfigureSystem::setConfiguration() { |
| 28 | enabled = !emulation_running; | 30 | enabled = !System::IsPoweredOn(); |
| 29 | 31 | ||
| 30 | if (!enabled) { | 32 | if (!enabled) { |
| 31 | ReadSystemSettings(); | 33 | ReadSystemSettings(); |