summaryrefslogtreecommitdiffstats
path: root/src/citra_qt
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2016-09-02 05:30:01 +0200
committerbunnei <bunneidev@gmail.com>2016-09-15 23:49:28 +0200
commitd532f6b496f27077f93d65a3e4b13de57c5979df (patch)
tree1dab7169c70270510b973ffe7cd60f6adda2f1ff /src/citra_qt
parentcore: Add configuration option for CPU JIT. (diff)
downloadyuzu-d532f6b496f27077f93d65a3e4b13de57c5979df.tar
yuzu-d532f6b496f27077f93d65a3e4b13de57c5979df.tar.gz
yuzu-d532f6b496f27077f93d65a3e4b13de57c5979df.tar.bz2
yuzu-d532f6b496f27077f93d65a3e4b13de57c5979df.tar.lz
yuzu-d532f6b496f27077f93d65a3e4b13de57c5979df.tar.xz
yuzu-d532f6b496f27077f93d65a3e4b13de57c5979df.tar.zst
yuzu-d532f6b496f27077f93d65a3e4b13de57c5979df.zip
Diffstat (limited to 'src/citra_qt')
-rw-r--r--src/citra_qt/configure_general.cpp5
-rw-r--r--src/citra_qt/configure_general.ui20
2 files changed, 25 insertions, 0 deletions
diff --git a/src/citra_qt/configure_general.cpp b/src/citra_qt/configure_general.cpp
index 95aab9f2e..e6832341a 100644
--- a/src/citra_qt/configure_general.cpp
+++ b/src/citra_qt/configure_general.cpp
@@ -7,6 +7,7 @@
#include "ui_configure_general.h"
#include "core/settings.h"
+#include "core/system.h"
ConfigureGeneral::ConfigureGeneral(QWidget *parent) :
QWidget(parent),
@@ -14,6 +15,8 @@ ConfigureGeneral::ConfigureGeneral(QWidget *parent) :
{
ui->setupUi(this);
this->setConfiguration();
+
+ ui->toggle_cpu_jit->setEnabled(!System::IsPoweredOn());
}
ConfigureGeneral::~ConfigureGeneral() {
@@ -22,6 +25,7 @@ ConfigureGeneral::~ConfigureGeneral() {
void ConfigureGeneral::setConfiguration() {
ui->toggle_deepscan->setChecked(UISettings::values.gamedir_deepscan);
ui->toggle_check_exit->setChecked(UISettings::values.confirm_before_closing);
+ ui->toggle_cpu_jit->setChecked(Settings::values.use_cpu_jit);
ui->region_combobox->setCurrentIndex(Settings::values.region_value);
}
@@ -29,5 +33,6 @@ void ConfigureGeneral::applyConfiguration() {
UISettings::values.gamedir_deepscan = ui->toggle_deepscan->isChecked();
UISettings::values.confirm_before_closing = ui->toggle_check_exit->isChecked();
Settings::values.region_value = ui->region_combobox->currentIndex();
+ Settings::values.use_cpu_jit = ui->toggle_cpu_jit->isChecked();
Settings::Apply();
}
diff --git a/src/citra_qt/configure_general.ui b/src/citra_qt/configure_general.ui
index 343f804c0..81688113f 100644
--- a/src/citra_qt/configure_general.ui
+++ b/src/citra_qt/configure_general.ui
@@ -43,6 +43,26 @@
</layout>
</widget>
</item>
+ <item>
+ <widget class="QGroupBox" name="groupBox_2">
+ <property name="title">
+ <string>Performance</string>
+ </property>
+ <layout class="QHBoxLayout" name="horizontalLayout_7">
+ <item>
+ <layout class="QVBoxLayout" name="verticalLayout_5">
+ <item>
+ <widget class="QCheckBox" name="toggle_cpu_jit">
+ <property name="text">
+ <string>Enable CPU JIT</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </item>
+ </layout>
+ </widget>
+ </item>
<item>
<widget class="QGroupBox" name="groupBox_4">
<property name="title">