From 441072d31e305ba3fa60e96a5d0c55ea6d9ac067 Mon Sep 17 00:00:00 2001 From: omegadox Date: Sun, 23 Nov 2008 05:55:48 +0000 Subject: 1. You can now toggle cheats with the ISO properties GUI. 2. Added "SetLines" function in the IniFile class. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1264 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Common/Src/IniFile.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Source/Core/Common/Src/IniFile.cpp') 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 &lines) +{ + Section* section = GetOrCreateSection(sectionName); + section->lines.clear(); + + for (std::vector::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); -- cgit v1.2.3