Changeset 6858 for code/branches/skybox2/src/libraries/core
- Timestamp:
- May 6, 2010, 1:11:43 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
r6772 r6858 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 81 #ifdef ORXONOX_PLATFORM_WINDOWS … … 150 149 this->setConfigValues(); 151 150 152 // no captions in gametype.153 if(CommandLineParser::getValue("noGametypeCaptions").getBool())154 {155 ModifyConfigValue(bGametypeCaptions_, tset, false);156 }157 158 151 // create persistent io console 159 152 this->ioConsole_.reset(new IOConsole()); … … 201 194 .description("If true, all random actions are different each time you start the game") 202 195 .callback(this, &Core::initRandomNumberGenerator); 203 SetConfigValue(bGametypeCaptions_, true)204 .description("Set to false if you don't want to use Gametype captions.");205 196 } 206 197 -
code/branches/skybox2/src/libraries/core/Core.h
r6772 r6858 67 67 void setConfigValues(); 68 68 69 inline bool hasGametypeCaptions(void)70 { return this->bGametypeCaptions_; }71 72 69 //! Returns the configured language. 73 70 const std::string& getLanguage() … … 111 108 std::string language_; //!< The language 112 109 bool bInitRandomNumberGenerator_; //!< If true, srand(time(0)) is called 113 bool bGametypeCaptions_;114 110 115 111 static Core* singletonPtr_s;
Note: See TracChangeset
for help on using the changeset viewer.