From b628192bf27c871af3ecbf8982b4a13a78fd70c4 Mon Sep 17 00:00:00 2001 From: MerryMage Date: Fri, 12 Jan 2018 16:06:30 +0000 Subject: configuration: Add cpu_core configuration option --- src/citra/config.cpp | 3 ++- src/citra/default_ini.h | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'src/citra') diff --git a/src/citra/config.cpp b/src/citra/config.cpp index 432bf2ced..e44931abd 100644 --- a/src/citra/config.cpp +++ b/src/citra/config.cpp @@ -82,7 +82,8 @@ void Config::ReadValues() { sdl2_config->Get("Controls", "touch_device", "engine:emu_window"); // Core - Settings::values.use_cpu_jit = sdl2_config->GetBoolean("Core", "use_cpu_jit", true); + Settings::values.cpu_core = + static_cast(sdl2_config->GetInteger("Core", "cpu_core", 1)); // Renderer Settings::values.use_hw_renderer = sdl2_config->GetBoolean("Renderer", "use_hw_renderer", true); diff --git a/src/citra/default_ini.h b/src/citra/default_ini.h index 783c4a835..b4914d29f 100644 --- a/src/citra/default_ini.h +++ b/src/citra/default_ini.h @@ -67,9 +67,9 @@ motion_device= touch_device= [Core] -# Whether to use the Just-In-Time (JIT) compiler for CPU emulation -# 0: Interpreter (slow), 1 (default): JIT (fast) -use_cpu_jit = +# Which CPU core to use for CPU emulation +# 0: Unicorn (slow), 1 (default): Dynarmic (faster) +cpu_core = [Renderer] # Whether to use software or hardware rendering. -- cgit v1.2.3