Changeset 3260 for code/branches/core4/src
- Timestamp:
- Jun 30, 2009, 4:53:06 PM (15 years ago)
- Location:
- code/branches/core4/src/core
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core4/src/core/ConfigValueIncludes.h
r2171 r3260 52 52 if (!container##varname) \ 53 53 { \ 54 container##varname = new orxonox::ConfigValueContainer( ConfigFileType::Settings, identifier##varname, identifier##varname->getName(), #varname, defvalue, varname); \54 container##varname = new orxonox::ConfigValueContainer(type, identifier##varname, identifier##varname->getName(), #varname, defvalue, varname); \ 55 55 identifier##varname->addConfigValueContainer(#varname, container##varname); \ 56 56 } \ … … 70 70 if (!container##varname) \ 71 71 { \ 72 container##varname = new orxonox::ConfigValueContainer( ConfigFileType::Settings, identifier##varname, identifier##varname->getName(), #varname, defvalue); \72 container##varname = new orxonox::ConfigValueContainer(type, identifier##varname, identifier##varname->getName(), #varname, defvalue); \ 73 73 identifier##varname->addConfigValueContainer(#varname, container##varname); \ 74 74 } \ -
code/branches/core4/src/core/Shell.cc
r3196 r3260 78 78 OutputHandler::getOutStream().setOutputBuffer(&this->outputBuffer_); 79 79 80 // Get a config file for the command history 81 this->commandHistoryConfigFileType_ = ConfigFileManager::getInstance().getNewConfigFileType(); 82 ConfigFileManager::getInstance().setFilename(this->commandHistoryConfigFileType_, "commandHistory.ini"); 83 80 84 this->setConfigValues(); 81 85 … … 93 97 void Shell::setConfigValues() 94 98 { 95 SetConfigValue(maxHistoryLength_, 100).callback(this, &Shell::commandHistoryLengthChanged); 96 SetConfigValue(historyOffset_, 0).callback(this, &Shell::commandHistoryOffsetChanged); 97 SetConfigValueVector(commandHistory_, std::vector<std::string>()); 99 SetConfigValueGeneric(commandHistoryConfigFileType_, maxHistoryLength_, 100) 100 .callback(this, &Shell::commandHistoryLengthChanged); 101 SetConfigValueGeneric(commandHistoryConfigFileType_, historyOffset_, 0) 102 .callback(this, &Shell::commandHistoryOffsetChanged); 103 SetConfigValueVectorGeneric(commandHistoryConfigFileType_, commandHistory_, std::vector<std::string>()); 98 104 } 99 105 -
code/branches/core4/src/core/Shell.h
r3196 r3260 37 37 #include <vector> 38 38 39 #include "util/OutputBuffer.h" 40 #include "input/InputBuffer.h" 39 41 #include "OrxonoxClass.h" 40 #include "input/InputBuffer.h" 41 #include "util/OutputBuffer.h" 42 #include "ConfigFileManager.h" 42 43 43 44 namespace orxonox … … 145 146 bool bAddOutputLevel_; 146 147 148 ConfigFileType commandHistoryConfigFileType_; 149 147 150 static Shell* singletonRef_s; 148 151 };
Note: See TracChangeset
for help on using the changeset viewer.