summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Src/IniFile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/Common/Src/IniFile.cpp')
-rw-r--r--Source/Core/Common/Src/IniFile.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/Core/Common/Src/IniFile.cpp b/Source/Core/Common/Src/IniFile.cpp
index 199cd92624..dc3f8095dd 100644
--- a/Source/Core/Common/Src/IniFile.cpp
+++ b/Source/Core/Common/Src/IniFile.cpp
@@ -195,6 +195,16 @@ void IniFile::Set(const char* sectionName, const char* key, bool newValue)
}
+void IniFile::SetLines(const char* sectionName, const std::vector<std::string> &lines)
+{
+ Section* section = GetOrCreateSection(sectionName);
+ section->lines.clear();
+
+ for (std::vector<std::string>::const_iterator iter = lines.begin(); iter != lines.end(); ++iter)
+ {
+ section->lines.push_back(*iter);
+ }
+}
bool IniFile::Get(const char* sectionName, const char* key, std::string* value, const char* defaultValue)
{
Section* section = GetSection(sectionName);