diff options
| author | omegadox <omegadox@gmail.com> | 2008-11-23 05:55:48 +0000 |
|---|---|---|
| committer | omegadox <omegadox@gmail.com> | 2008-11-23 05:55:48 +0000 |
| commit | 441072d31e305ba3fa60e96a5d0c55ea6d9ac067 (patch) | |
| tree | 7003220770a5d0f601307229a0d05d5941386c0e /Source/Core/Common/Src/IniFile.cpp | |
| parent | cb8c12591aab21180f96d94975b6e5a8b4f86d9e (diff) | |
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
Diffstat (limited to 'Source/Core/Common/Src/IniFile.cpp')
| -rw-r--r-- | Source/Core/Common/Src/IniFile.cpp | 10 |
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);
|
