From a27199fe9b6fdb122c35559f27b5b9f9b836f0ee Mon Sep 17 00:00:00 2001 From: bunnei Date: Thu, 1 Sep 2016 23:30:01 -0400 Subject: [PATCH] qt: Add UI configuration option to enable CPU JIT. --- src/citra_qt/configure_general.cpp | 5 +++++ src/citra_qt/configure_general.ui | 20 ++++++++++++++++++++ 2 files changed, 25 insertions(+) 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 @@ + + + + Performance + + + + + + + + Enable CPU JIT + + + + + + + +