Changeset 6772 for code/branches/skybox2/src/libraries
- Timestamp:
- Apr 22, 2010, 4:27:25 PM (15 years ago)
- Location:
- code/branches/skybox2/src/libraries/core
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/skybox2/src/libraries/core/Core.cc
r6417 r6772 78 78 79 79 SetCommandLineArgument(settingsFile, "orxonox.ini").information("THE configuration file"); 80 SetCommandLineSwitch(noGametypeCaptions).information("Use this if you don't want to use Gametype captions."); 81 80 82 #ifdef ORXONOX_PLATFORM_WINDOWS 81 83 SetCommandLineArgument(limitToCPU, 1).information("Limits the program to one CPU/core (1, 2, 3, etc.). Default is the first core (faster than off)"); … … 148 150 this->setConfigValues(); 149 151 152 // no captions in gametype. 153 if(CommandLineParser::getValue("noGametypeCaptions").getBool()) 154 { 155 ModifyConfigValue(bGametypeCaptions_, tset, false); 156 } 157 150 158 // create persistent io console 151 159 this->ioConsole_.reset(new IOConsole()); … … 193 201 .description("If true, all random actions are different each time you start the game") 194 202 .callback(this, &Core::initRandomNumberGenerator); 203 SetConfigValue(bGametypeCaptions_, true) 204 .description("Set to false if you don't want to use Gametype captions."); 195 205 } 196 206 -
code/branches/skybox2/src/libraries/core/Core.h
r6417 r6772 67 67 void setConfigValues(); 68 68 69 inline bool hasGametypeCaptions(void) 70 { return this->bGametypeCaptions_; } 71 69 72 //! Returns the configured language. 70 73 const std::string& getLanguage() … … 108 111 std::string language_; //!< The language 109 112 bool bInitRandomNumberGenerator_; //!< If true, srand(time(0)) is called 113 bool bGametypeCaptions_; 110 114 111 115 static Core* singletonPtr_s;
Note: See TracChangeset
for help on using the changeset viewer.