Merge pull request #1931 from Sonicadvance1/Fix_PP_Config
Fix the Post Processing shader configuration dialog.
This commit is contained in:
commit
7fba4856ce
|
@ -260,10 +260,16 @@ void PostProcessingShaderConfiguration::SaveOptionsConfiguration()
|
||||||
break;
|
break;
|
||||||
case ConfigurationOption::OptionType::OPTION_FLOAT:
|
case ConfigurationOption::OptionType::OPTION_FLOAT:
|
||||||
{
|
{
|
||||||
std::string value = "";
|
std::ostringstream value;
|
||||||
|
value.imbue(std::locale("C"));
|
||||||
|
|
||||||
for (size_t i = 0; i < it.second.m_float_values.size(); ++i)
|
for (size_t i = 0; i < it.second.m_float_values.size(); ++i)
|
||||||
value += StringFromFormat("%f%s", it.second.m_float_values[i], i == (it.second.m_float_values.size() - 1) ? "": ", ");
|
{
|
||||||
ini.GetOrCreateSection(section)->Set(it.second.m_option_name, value);
|
value << it.second.m_float_values[i];
|
||||||
|
if (i != (it.second.m_float_values.size() - 1))
|
||||||
|
value << ", ";
|
||||||
|
}
|
||||||
|
ini.GetOrCreateSection(section)->Set(it.second.m_option_name, value.str());
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue