SDL: Fix multiple entries for settings being created in ini

This commit is contained in:
Connor McLaughlin 2020-01-16 14:36:31 +10:00
parent 504510c242
commit 25004f882e

View file

@ -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<long>(value));
m_ini.SetLongValue(section, key, static_cast<long>(value), nullptr, false, true);
}
void SDLSettingsInterface::SetFloatValue(const char* section, const char* key, float value)
{
m_ini.SetDoubleValue(section, key, static_cast<double>(value));
m_ini.SetDoubleValue(section, key, static_cast<double>(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)