summaryrefslogtreecommitdiffstats
path: root/src/citra_qt/configure_system.cpp
diff options
context:
space:
mode:
authorwwylele <wwylele@gmail.com>2016-09-02 14:18:45 +0200
committerwwylele <wwylele@gmail.com>2016-09-02 14:18:45 +0200
commitbdc59c4c21bebccd6b8497f8f3667c57574677b1 (patch)
tree01751cd1c7329b041aaa1d40cf1bf8b098c61567 /src/citra_qt/configure_system.cpp
parentMerge pull request #2040 from citra-emu/revert-2037-msvc-relwithdebinfo (diff)
downloadyuzu-bdc59c4c21bebccd6b8497f8f3667c57574677b1.tar
yuzu-bdc59c4c21bebccd6b8497f8f3667c57574677b1.tar.gz
yuzu-bdc59c4c21bebccd6b8497f8f3667c57574677b1.tar.bz2
yuzu-bdc59c4c21bebccd6b8497f8f3667c57574677b1.tar.lz
yuzu-bdc59c4c21bebccd6b8497f8f3667c57574677b1.tar.xz
yuzu-bdc59c4c21bebccd6b8497f8f3667c57574677b1.tar.zst
yuzu-bdc59c4c21bebccd6b8497f8f3667c57574677b1.zip
Diffstat (limited to '')
-rw-r--r--src/citra_qt/configure_system.cpp6
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 @@
#include "core/hle/service/fs/archive.h"
#include "core/hle/service/cfg/cfg.h"
+#include "core/system.h"
static const std::array<int, 12> days_in_month = {{
31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31
@@ -17,6 +18,7 @@ ConfigureSystem::ConfigureSystem(QWidget *parent) :
QWidget(parent),
ui(new Ui::ConfigureSystem) {
ui->setupUi(this);
+ this->setConfiguration();
connect(ui->combo_birthmonth, SIGNAL(currentIndexChanged(int)), SLOT(updateBirthdayComboBox(int)));
}
@@ -24,8 +26,8 @@ ConfigureSystem::ConfigureSystem(QWidget *parent) :
ConfigureSystem::~ConfigureSystem() {
}
-void ConfigureSystem::setConfiguration(bool emulation_running) {
- enabled = !emulation_running;
+void ConfigureSystem::setConfiguration() {
+ enabled = !System::IsPoweredOn();
if (!enabled) {
ReadSystemSettings();