Changeset 715 for code/branches/FICN/src/orxonox/Orxonox.cc
- Timestamp:
- Dec 28, 2007, 11:33:10 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/orxonox/Orxonox.cc
r708 r715 153 153 * @param path path to config (in home dir or something) 154 154 */ 155 void Orxonox::init(int argc, char **argv, String path)155 void Orxonox::init(int argc, char **argv, std::string path) 156 156 { 157 157 //TODO: find config file (assuming executable directory) 158 158 //TODO: read config file 159 159 //TODO: give config file to Ogre 160 String mode;160 std::string mode; 161 161 // if(argc>=2) 162 // mode = String(argv[1]);162 // mode = std::string(argv[1]); 163 163 // else 164 164 // mode = ""; … … 169 169 //mode = "presentation"; 170 170 if(ar.errorHandling()) die(); 171 if(mode == String("server"))171 if(mode == std::string("server")) 172 172 { 173 173 serverInit(path); 174 174 mode_ = SERVER; 175 175 } 176 else if(mode == String("client"))176 else if(mode == std::string("client")) 177 177 { 178 178 clientInit(path); 179 179 mode_ = CLIENT; 180 180 } 181 else if(mode == String("presentation"))181 else if(mode == std::string("presentation")) 182 182 { 183 183 serverInit(path); … … 243 243 } 244 244 245 void Orxonox::standaloneInit( String path)245 void Orxonox::standaloneInit(std::string path) 246 246 { 247 247 ogre_->setConfigPath(path); … … 262 262 } 263 263 264 void Orxonox::playableServer( String path)264 void Orxonox::playableServer(std::string path) 265 265 { 266 266 ogre_->setConfigPath(path); … … 296 296 } 297 297 298 void Orxonox::serverInit( String path)298 void Orxonox::serverInit(std::string path) 299 299 { 300 300 COUT(2) << "initialising server" << std::endl; … … 306 306 } 307 307 308 void Orxonox::clientInit( String path)308 void Orxonox::clientInit(std::string path) 309 309 { 310 310 COUT(2) << "initialising client" << std::endl; … … 321 321 void Orxonox::defineResources() 322 322 { 323 String secName, typeName, archName;323 std::string secName, typeName, archName; 324 324 Ogre::ConfigFile cf; 325 325 #if OGRE_PLATFORM == OGRE_PLATFORM_APPLE … … 340 340 archName = i->second; 341 341 #if OGRE_PLATFORM == OGRE_PLATFORM_APPLE 342 Ogre::ResourceGroupManager::getSingleton().addResourceLocation( String(macBundlePath() + "/" + archName), typeName, secName);342 Ogre::ResourceGroupManager::getSingleton().addResourceLocation( std::string(macBundlePath() + "/" + archName), typeName, secName); 343 343 #else 344 344 Ogre::ResourceGroupManager::getSingleton().addResourceLocation( archName, typeName, secName); … … 426 426 // fixes auto repeat problem 427 427 #if defined OIS_LINUX_PLATFORM 428 pl.insert(std::make_pair( String("XAutoRepeatOn"), String("true")));428 pl.insert(std::make_pair(std::string("XAutoRepeatOn"), std::string("true"))); 429 429 #endif 430 430 … … 432 432 win->getCustomAttribute("WINDOW", &windowHnd); 433 433 windowHndStr << windowHnd; 434 pl.insert(std::make_pair( String("WINDOW"), windowHndStr.str()));434 pl.insert(std::make_pair(std::string("WINDOW"), windowHndStr.str())); 435 435 inputManager_ = OIS::InputManager::createInputSystem(pl); 436 436
Note: See TracChangeset
for help on using the changeset viewer.