diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-01-21 20:37:41 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-01-29 21:53:11 +0100 |
commit | 788d57d723ba7e857b4872d12b698ed5cef45fd7 (patch) | |
tree | 1a2cf5a410e6688d62e3ff3fdf07b5749bd07663 /src/yuzu_cmd/config.cpp | |
parent | core: Only wait for idle on gpu_core when it was initialized (diff) | |
download | yuzu-788d57d723ba7e857b4872d12b698ed5cef45fd7.tar yuzu-788d57d723ba7e857b4872d12b698ed5cef45fd7.tar.gz yuzu-788d57d723ba7e857b4872d12b698ed5cef45fd7.tar.bz2 yuzu-788d57d723ba7e857b4872d12b698ed5cef45fd7.tar.lz yuzu-788d57d723ba7e857b4872d12b698ed5cef45fd7.tar.xz yuzu-788d57d723ba7e857b4872d12b698ed5cef45fd7.tar.zst yuzu-788d57d723ba7e857b4872d12b698ed5cef45fd7.zip |
Diffstat (limited to '')
-rw-r--r-- | src/yuzu_cmd/config.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/yuzu_cmd/config.cpp b/src/yuzu_cmd/config.cpp index 161583b54..b01a36023 100644 --- a/src/yuzu_cmd/config.cpp +++ b/src/yuzu_cmd/config.cpp @@ -371,6 +371,12 @@ void Config::ReadValues() { Settings::values.use_multi_core = sdl2_config->GetBoolean("Core", "use_multi_core", false); // Renderer + const int renderer_backend = sdl2_config->GetInteger( + "Renderer", "backend", static_cast<int>(Settings::RendererBackend::OpenGL)); + Settings::values.renderer_backend = static_cast<Settings::RendererBackend>(renderer_backend); + Settings::values.renderer_debug = sdl2_config->GetBoolean("Renderer", "debug", false); + Settings::values.vulkan_device = sdl2_config->GetInteger("Renderer", "vulkan_device", 0); + Settings::values.resolution_factor = static_cast<float>(sdl2_config->GetReal("Renderer", "resolution_factor", 1.0)); Settings::values.use_frame_limit = sdl2_config->GetBoolean("Renderer", "use_frame_limit", true); |