mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-26 07:35:41 +00:00
SDL: Fix multiple entries for settings being created in ini
This commit is contained in:
parent
504510c242
commit
25004f882e
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue