Changeset 6374 for code/branches/presentation2/src/libraries
- Timestamp:
- Dec 17, 2009, 11:49:25 PM (15 years ago)
- Location:
- code/branches/presentation2/src/libraries/core
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/src/libraries/core/ConfigFileManager.h
r6197 r6374 52 52 static const int Settings = 1; 53 53 static const int JoyStickCalibration = 2; 54 static const int CommandHistory = 3; 54 55 55 56 static const int numberOfReservedTypes = 1024; -
code/branches/presentation2/src/libraries/core/Shell.cc
r6364 r6374 62 62 this->configureInputBuffer(); 63 63 64 // Get a config file for the command history 65 this->commandHistoryConfigFileType_ = ConfigFileManager::getInstance().getNewConfigFileType(); 66 ConfigFileManager::getInstance().setFilename(this->commandHistoryConfigFileType_, "commandHistory.ini"); 64 // Specify file for the command history 65 ConfigFileManager::getInstance().setFilename(ConfigFileType::CommandHistory, "commandHistory.ini"); 67 66 68 67 // Use a stringstream object to buffer the output … … 98 97 SetConfigValue(historyOffset_, 0) 99 98 .callback(this, &Shell::commandHistoryOffsetChanged); 100 setConfigValueGeneric(this, &commandHistory_, commandHistoryConfigFileType_, "Shell", "commandHistory_", std::vector<std::string>());99 setConfigValueGeneric(this, &commandHistory_, ConfigFileType::CommandHistory, "Shell", "commandHistory_", std::vector<std::string>()); 101 100 102 101 #ifdef ORXONOX_RELEASE -
code/branches/presentation2/src/libraries/core/Shell.h
r6180 r6374 158 158 unsigned int scrollPosition_; 159 159 unsigned int historyPosition_; 160 ConfigFileType commandHistoryConfigFileType_;161 160 162 161 std::string promptPrefix_;
Note: See TracChangeset
for help on using the changeset viewer.