From 3ca3a78b58d09a828ee6387934e9dc106671e6c1 Mon Sep 17 00:00:00 2001 From: Albert Liu <45282415+ggrtk@users.noreply.github.com> Date: Wed, 24 Feb 2021 17:23:07 -0800 Subject: [PATCH] Controller: Fix invalid SettingInfos causing crash in FullscreenUI --- src/core/namco_guncon.cpp | 2 +- src/core/playstation_mouse.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/namco_guncon.cpp b/src/core/namco_guncon.cpp index 7a0104cba..2e0fda8dd 100644 --- a/src/core/namco_guncon.cpp +++ b/src/core/namco_guncon.cpp @@ -255,7 +255,7 @@ Controller::SettingList NamcoGunCon::StaticGetSettings() {{SettingInfo::Type::Path, "CrosshairImagePath", TRANSLATABLE("NamcoGunCon", "Crosshair Image Path"), TRANSLATABLE("NamcoGunCon", "Path to an image to use as a crosshair/cursor.")}, {SettingInfo::Type::Float, "CrosshairScale", TRANSLATABLE("NamcoGunCon", "Crosshair Image Scale"), - TRANSLATABLE("NamcoGunCon", "Scale of crosshair image on screen."), "1.0", "0.0001", "100.0"}, + TRANSLATABLE("NamcoGunCon", "Scale of crosshair image on screen."), "1.0", "0.0001", "100.0", "0.10"}, {SettingInfo::Type::Float, "XScale", TRANSLATABLE("NamcoGunCon", "X Scale"), TRANSLATABLE("NamcoGunCon", "Scales X coordinates relative to the center of the screen."), "1.0", "0.01", "2.0", "0.01"}}}; diff --git a/src/core/playstation_mouse.cpp b/src/core/playstation_mouse.cpp index a689d61d2..b6ec365c7 100644 --- a/src/core/playstation_mouse.cpp +++ b/src/core/playstation_mouse.cpp @@ -222,7 +222,7 @@ Controller::SettingList PlayStationMouse::StaticGetSettings() { static constexpr std::array settings = {{ {SettingInfo::Type::Boolean, "RelativeMouseMode", TRANSLATABLE("PlayStationMouse", "Relative Mouse Mode"), - TRANSLATABLE("PlayStationMouse", "Locks the mouse cursor to the window, use for FPS games.")}, + TRANSLATABLE("PlayStationMouse", "Locks the mouse cursor to the window, use for FPS games."), "false"}, }}; return SettingList(settings.begin(), settings.end());