diff options
| author | 2016-09-02 09:36:08 -0400 | |
|---|---|---|
| committer | 2016-09-02 09:36:08 -0400 | |
| commit | 274b925a9705ebd5c4ec242c70d44249dc9f2b0d (patch) | |
| tree | 01751cd1c7329b041aaa1d40cf1bf8b098c61567 /src/citra_qt/configure_system.cpp | |
| parent | Merge pull request #2040 from citra-emu/revert-2037-msvc-relwithdebinfo (diff) | |
| parent | Qt: unify running detection (diff) | |
| download | yuzu-274b925a9705ebd5c4ec242c70d44249dc9f2b0d.tar.gz yuzu-274b925a9705ebd5c4ec242c70d44249dc9f2b0d.tar.xz yuzu-274b925a9705ebd5c4ec242c70d44249dc9f2b0d.zip | |
Merge pull request #2044 from wwylele/system-setting-fix
Qt: unify running detection of system settings configure
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(); |