Changeset 7661 in orxonox.OLD for trunk/src/lib/util/preferences.cc
- Timestamp:
- May 18, 2006, 12:55:34 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/util/preferences.cc
r7256 r7661 17 17 18 18 #include "preferences.h" 19 20 using namespace std; 19 #include "lib/parser/ini_parser/ini_parser.h" 21 20 22 21 … … 137 136 * @return value of the item if found. defaultValue else 138 137 */ 139 conststd::string Preferences::getString(const std::string& section, const std::string& name, const std::string& defaultValue)138 std::string Preferences::getString(const std::string& section, const std::string& name, const std::string& defaultValue) 140 139 { 141 140 return getMultiType(section, name, MultiType(defaultValue)).getString(); … … 260 259 IniParser iniParser(this->fileName); 261 260 262 if ( !iniParser.isOpen() )263 return false;264 265 261 std::list<prefSection>::iterator it = data.begin(); 266 262 bool didChanges = false; … … 278 274 } 279 275 } 280 281 if ( didChanges )276 /// HACK DO WE HAVE TO CHECK THIS?? 277 //if ( didChanges ) 282 278 { 283 279 iniParser.writeFile( this->fileName ); … … 314 310 { 315 311 std::list<std::string> lst; 316 312 317 313 std::list<prefSection>::const_iterator it = data.begin(); 318 314
Note: See TracChangeset
for help on using the changeset viewer.