Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6374


Ignore:
Timestamp:
Dec 17, 2009, 11:49:25 PM (14 years ago)
Author:
rgrieder
Message:

Fixed a problem in the Shell with the command history config file type.

Location:
code/branches/presentation2/src/libraries/core
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2/src/libraries/core/ConfigFileManager.h

    r6197 r6374  
    5252        static const int Settings            = 1;
    5353        static const int JoyStickCalibration = 2;
     54        static const int CommandHistory      = 3;
    5455
    5556        static const int numberOfReservedTypes = 1024;
  • code/branches/presentation2/src/libraries/core/Shell.cc

    r6364 r6374  
    6262        this->configureInputBuffer();
    6363
    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");
    6766
    6867        // Use a stringstream object to buffer the output
     
    9897        SetConfigValue(historyOffset_, 0)
    9998            .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>());
    101100
    102101#ifdef ORXONOX_RELEASE
  • code/branches/presentation2/src/libraries/core/Shell.h

    r6180 r6374  
    158158            unsigned int              scrollPosition_;
    159159            unsigned int              historyPosition_;
    160             ConfigFileType            commandHistoryConfigFileType_;
    161160
    162161            std::string               promptPrefix_;
Note: See TracChangeset for help on using the changeset viewer.