diff --git a/stepmania/src/IniFile.cpp b/stepmania/src/IniFile.cpp index f38d4814b0..ec622798d2 100644 --- a/stepmania/src/IniFile.cpp +++ b/stepmania/src/IniFile.cpp @@ -271,6 +271,11 @@ const IniFile::key *IniFile::GetKey(const CString &keyname) const return &i->second; } +void IniFile::SetValue(const CString &keyname, const key &key) +{ + keys[keyname]=key; +} + void IniFile::RenameKey(const CString &from, const CString &to) { if(keys.find(from) == keys.end()) diff --git a/stepmania/src/IniFile.h b/stepmania/src/IniFile.h index 03972de0a8..3c398b2af7 100644 --- a/stepmania/src/IniFile.h +++ b/stepmania/src/IniFile.h @@ -92,6 +92,7 @@ public: bool DeleteKey(const CString &keyname); const key *GetKey(const CString &keyname) const; + void SetValue(const CString &keyname, const key &key); /* Rename a key. For example, call RenameKey("foo", "main") after * reading an INI where [foo] is an alias to [main]. If to already