mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-08 23:52:29 +02:00
IniFile: Replace string joining code with JoinString
This commit is contained in:
parent
b92871111a
commit
35959bdaf9
@ -68,15 +68,7 @@ void IniFile::Section::Set(const std::string& key, const std::string& newValue,
|
|||||||
|
|
||||||
void IniFile::Section::Set(const std::string& key, const std::vector<std::string>& newValues)
|
void IniFile::Section::Set(const std::string& key, const std::vector<std::string>& newValues)
|
||||||
{
|
{
|
||||||
std::string temp;
|
Set(key, JoinStrings(newValues, ","));
|
||||||
// Join the strings with ,
|
|
||||||
for (const std::string& value : newValues)
|
|
||||||
{
|
|
||||||
temp = value + ",";
|
|
||||||
}
|
|
||||||
// remove last ,
|
|
||||||
temp.resize(temp.length() - 1);
|
|
||||||
Set(key, temp);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void IniFile::Section::Set(const std::string& key, u32 newValue)
|
void IniFile::Section::Set(const std::string& key, u32 newValue)
|
||||||
|
Loading…
Reference in New Issue
Block a user