- Timestamp:
- Dec 29, 2009, 10:30:19 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gamestate/src/libraries/core/input/Button.cc
r6428 r6432 42 42 #include "core/CommandEvaluation.h" 43 43 #include "core/CommandExecutor.h" 44 #include "core/ConfigFileManager.h" 44 45 45 46 namespace orxonox … … 81 82 } 82 83 83 void Button::readBinding(ConfigFile Type type)84 { 85 const std::string& binding = ConfigFileManager::getInstance().getValue(type,groupName_, name_, "", true);84 void Button::readBinding(ConfigFile* configFile) 85 { 86 const std::string& binding = configFile->getOrCreateValue(groupName_, name_, "", true); 86 87 this->parse(binding); 87 88 } 88 89 89 void Button::setBinding(ConfigFile Type type, const std::string& binding, bool bTemporary)90 void Button::setBinding(ConfigFile* configFile, const std::string& binding, bool bTemporary) 90 91 { 91 92 if (!bTemporary) 92 ConfigFileManager::getInstance().setValue(type,groupName_, name_, binding, true);93 configFile->setValue(groupName_, name_, binding, true); 93 94 this->parse(binding); 94 95 }
Note: See TracChangeset
for help on using the changeset viewer.