From 25004f882ea2eea545640e0d91d80a53b398dfe7 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Thu, 16 Jan 2020 14:36:31 +1000 Subject: [PATCH] SDL: Fix multiple entries for settings being created in ini --- src/duckstation/sdl_settings_interface.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/duckstation/sdl_settings_interface.cpp b/src/duckstation/sdl_settings_interface.cpp index 0d3b32977..2d0ad2d6a 100644 --- a/src/duckstation/sdl_settings_interface.cpp +++ b/src/duckstation/sdl_settings_interface.cpp @@ -40,17 +40,17 @@ std::string SDLSettingsInterface::GetStringValue(const char* section, const char void SDLSettingsInterface::SetIntValue(const char* section, const char* key, int value) { - m_ini.SetLongValue(section, key, static_cast(value)); + m_ini.SetLongValue(section, key, static_cast(value), nullptr, false, true); } void SDLSettingsInterface::SetFloatValue(const char* section, const char* key, float value) { - m_ini.SetDoubleValue(section, key, static_cast(value)); + m_ini.SetDoubleValue(section, key, static_cast(value), nullptr, true); } void SDLSettingsInterface::SetBoolValue(const char* section, const char* key, bool value) { - m_ini.SetBoolValue(section, key, value); + m_ini.SetBoolValue(section, key, value, nullptr, true); } void SDLSettingsInterface::SetStringValue(const char* section, const char* key, const char* value)