Changeset 9406 in orxonox.OLD for trunk/src/lib/gui/gui_saveable.cc
- Timestamp:
- Jul 24, 2006, 11:09:47 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/gui/gui_saveable.cc
r8362 r9406 60 60 void Saveable::load() 61 61 { 62 this->value() = Preferences::getInstance()->getMultiType(this->group->get Name(), this->getName(), this->_defaultValue);63 PRINTF(4)("Loaded to '%s' of group '%s' value '%s'\n", this->get Name(), this->group->getName(), this->value().getCString());62 this->value() = Preferences::getInstance()->getMultiType(this->group->getCName(), this->getCName(), this->_defaultValue); 63 PRINTF(4)("Loaded to '%s' of group '%s' value '%s'\n", this->getCName(), this->group->getCName(), this->value().getCString()); 64 64 } 65 65 66 66 void Saveable::save() 67 67 { 68 Preferences::getInstance()->setMultiType(this->group->get Name(), this->getName(), this->value() );69 PRINTF(4)("Saved to '%s' of group '%s' value '%s'\n", this->get Name(), this->group->getName(), this->value().getCString());68 Preferences::getInstance()->setMultiType(this->group->getCName(), this->getCName(), this->value() ); 69 PRINTF(4)("Saved to '%s' of group '%s' value '%s'\n", this->getCName(), this->group->getCName(), this->value().getCString()); 70 70 } 71 71
Note: See TracChangeset
for help on using the changeset viewer.