aboutsummaryrefslogtreecommitdiff
path: root/src/yuzu_cmd/config.cpp
diff options
context:
space:
mode:
authorfearlessTobi <thm.frey@gmail.com>2018-08-21 01:14:06 +0200
committerfearlessTobi <thm.frey@gmail.com>2018-08-21 01:14:06 +0200
commitfc6901c205f614b05c1cbcf2b6a6f3e95eb34aec (patch)
tree927b7495e2674a375aca8a4b004907e8af76c638 /src/yuzu_cmd/config.cpp
parentf0b3a58e701760a2c8832e4522a895ba0ec2547f (diff)
Port #3353 from Citra
Diffstat (limited to 'src/yuzu_cmd/config.cpp')
-rw-r--r--src/yuzu_cmd/config.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/yuzu_cmd/config.cpp b/src/yuzu_cmd/config.cpp
index 9bf26717fe..a955801523 100644
--- a/src/yuzu_cmd/config.cpp
+++ b/src/yuzu_cmd/config.cpp
@@ -96,8 +96,9 @@ void Config::ReadValues() {
// Renderer
Settings::values.resolution_factor =
(float)sdl2_config->GetReal("Renderer", "resolution_factor", 1.0);
- Settings::values.toggle_framelimit =
- sdl2_config->GetBoolean("Renderer", "toggle_framelimit", true);
+ Settings::values.use_frame_limit = sdl2_config->GetBoolean("Renderer", "use_frame_limit", true);
+ Settings::values.frame_limit =
+ static_cast<u16>(sdl2_config->GetInteger("Renderer", "frame_limit", 100));
Settings::values.use_accurate_framebuffers =
sdl2_config->GetBoolean("Renderer", "use_accurate_framebuffers", false);