summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJannik Vogel <email@jannikvogel.de>2016-04-11 14:38:42 +0200
committerJannik Vogel <email@jannikvogel.de>2016-04-11 15:18:00 +0200
commitf2c86197042ab3179ce81e4b7e370f3bd7a46b75 (patch)
tree1ad3679abb313ba1100fa323bbb5e9a104f23af0 /src
parentMerge pull request #1657 from JayFoxRox/remove-dump-geometry (diff)
downloadyuzu-f2c86197042ab3179ce81e4b7e370f3bd7a46b75.tar
yuzu-f2c86197042ab3179ce81e4b7e370f3bd7a46b75.tar.gz
yuzu-f2c86197042ab3179ce81e4b7e370f3bd7a46b75.tar.bz2
yuzu-f2c86197042ab3179ce81e4b7e370f3bd7a46b75.tar.lz
yuzu-f2c86197042ab3179ce81e4b7e370f3bd7a46b75.tar.xz
yuzu-f2c86197042ab3179ce81e4b7e370f3bd7a46b75.tar.zst
yuzu-f2c86197042ab3179ce81e4b7e370f3bd7a46b75.zip
Diffstat (limited to 'src')
-rw-r--r--src/citra_qt/config.cpp1
-rw-r--r--src/citra_qt/configure_debug.cpp3
-rw-r--r--src/citra_qt/configure_general.cpp8
-rw-r--r--src/citra_qt/main.cpp3
-rw-r--r--src/core/settings.cpp14
-rw-r--r--src/core/settings.h2
6 files changed, 19 insertions, 12 deletions
diff --git a/src/citra_qt/config.cpp b/src/citra_qt/config.cpp
index ecf5c5a75..e363be38a 100644
--- a/src/citra_qt/config.cpp
+++ b/src/citra_qt/config.cpp
@@ -189,6 +189,7 @@ void Config::SaveValues() {
void Config::Reload() {
ReadValues();
+ Settings::Apply();
}
void Config::Save() {
diff --git a/src/citra_qt/configure_debug.cpp b/src/citra_qt/configure_debug.cpp
index ba66d0833..dc3d7b906 100644
--- a/src/citra_qt/configure_debug.cpp
+++ b/src/citra_qt/configure_debug.cpp
@@ -5,7 +5,6 @@
#include "citra_qt/configure_debug.h"
#include "ui_configure_debug.h"
-#include "core/gdbstub/gdbstub.h"
#include "core/settings.h"
ConfigureDebug::ConfigureDebug(QWidget *parent) :
@@ -26,7 +25,7 @@ void ConfigureDebug::setConfiguration() {
}
void ConfigureDebug::applyConfiguration() {
- GDBStub::ToggleServer(ui->toogle_gdbstub->isChecked());
Settings::values.use_gdbstub = ui->toogle_gdbstub->isChecked();
Settings::values.gdbstub_port = ui->gdbport_spinbox->value();
+ Settings::Apply();
}
diff --git a/src/citra_qt/configure_general.cpp b/src/citra_qt/configure_general.cpp
index 350bd794d..a27d0d26c 100644
--- a/src/citra_qt/configure_general.cpp
+++ b/src/citra_qt/configure_general.cpp
@@ -8,8 +8,6 @@
#include "core/settings.h"
-#include "video_core/video_core.h"
-
ConfigureGeneral::ConfigureGeneral(QWidget *parent) :
QWidget(parent),
ui(new Ui::ConfigureGeneral)
@@ -32,12 +30,8 @@ void ConfigureGeneral::setConfiguration() {
void ConfigureGeneral::applyConfiguration() {
UISettings::values.gamedir_deepscan = ui->toogle_deepscan->isChecked();
UISettings::values.confirm_before_closing = ui->toogle_check_exit->isChecked();
-
Settings::values.region_value = ui->region_combobox->currentIndex();
-
- VideoCore::g_hw_renderer_enabled =
Settings::values.use_hw_renderer = ui->toogle_hw_renderer->isChecked();
-
- VideoCore::g_shader_jit_enabled =
Settings::values.use_shader_jit = ui->toogle_shader_jit->isChecked();
+ Settings::Apply();
}
diff --git a/src/citra_qt/main.cpp b/src/citra_qt/main.cpp
index 23eb28259..2ca1e51f6 100644
--- a/src/citra_qt/main.cpp
+++ b/src/citra_qt/main.cpp
@@ -141,9 +141,6 @@ GMainWindow::GMainWindow() : config(new Config()), emu_thread(nullptr)
game_list->LoadInterfaceLayout();
- GDBStub::ToggleServer(Settings::values.use_gdbstub);
- GDBStub::SetServerPort(static_cast<u32>(Settings::values.gdbstub_port));
-
ui.action_Single_Window_Mode->setChecked(UISettings::values.single_window_mode);
ToggleWindowMode();
diff --git a/src/core/settings.cpp b/src/core/settings.cpp
index 8a14f75aa..1aa26fbd2 100644
--- a/src/core/settings.cpp
+++ b/src/core/settings.cpp
@@ -4,8 +4,22 @@
#include "settings.h"
+#include "core/gdbstub/gdbstub.h"
+
+#include "video_core/video_core.h"
+
namespace Settings {
Values values = {};
+void Apply() {
+
+ GDBStub::SetServerPort(static_cast<u32>(values.gdbstub_port));
+ GDBStub::ToggleServer(values.use_gdbstub);
+
+ VideoCore::g_hw_renderer_enabled = values.use_hw_renderer;
+ VideoCore::g_shader_jit_enabled = values.use_shader_jit;
+
}
+
+} // namespace
diff --git a/src/core/settings.h b/src/core/settings.h
index 97ddcdff9..4933a516d 100644
--- a/src/core/settings.h
+++ b/src/core/settings.h
@@ -67,4 +67,6 @@ struct Values {
u16 gdbstub_port;
} extern values;
+void Apply();
+
}