From f2c86197042ab3179ce81e4b7e370f3bd7a46b75 Mon Sep 17 00:00:00 2001 From: Jannik Vogel Date: Mon, 11 Apr 2016 14:38:42 +0200 Subject: CitraQt: Apply config at startup --- src/core/settings.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/core/settings.cpp') 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(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 -- cgit v1.2.3