Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 28, 2007, 11:33:10 PM (18 years ago)
Author:
rgrieder
Message:
  • the master has spoken…
  • misc/String.h is not anymore..
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN/src/orxonox/Orxonox.cc

    r708 r715  
    153153   * @param path path to config (in home dir or something)
    154154   */
    155   void Orxonox::init(int argc, char **argv, String path)
     155  void Orxonox::init(int argc, char **argv, std::string path)
    156156  {
    157157    //TODO: find config file (assuming executable directory)
    158158    //TODO: read config file
    159159    //TODO: give config file to Ogre
    160     String mode;
     160    std::string mode;
    161161//     if(argc>=2)
    162 //       mode = String(argv[1]);
     162//       mode = std::string(argv[1]);
    163163//     else
    164164//       mode = "";
     
    169169    //mode = "presentation";
    170170    if(ar.errorHandling()) die();
    171     if(mode == String("server"))
     171    if(mode == std::string("server"))
    172172    {
    173173      serverInit(path);
    174174      mode_ = SERVER;
    175175    }
    176     else if(mode == String("client"))
     176    else if(mode == std::string("client"))
    177177    {
    178178      clientInit(path);
    179179      mode_ = CLIENT;
    180180    }
    181     else if(mode == String("presentation"))
     181    else if(mode == std::string("presentation"))
    182182    {
    183183      serverInit(path);
     
    243243  }
    244244
    245   void Orxonox::standaloneInit(String path)
     245  void Orxonox::standaloneInit(std::string path)
    246246  {
    247247    ogre_->setConfigPath(path);
     
    262262  }
    263263
    264   void Orxonox::playableServer(String path)
     264  void Orxonox::playableServer(std::string path)
    265265  {
    266266    ogre_->setConfigPath(path);
     
    296296  }
    297297
    298   void Orxonox::serverInit(String path)
     298  void Orxonox::serverInit(std::string path)
    299299  {
    300300    COUT(2) << "initialising server" << std::endl;
     
    306306  }
    307307
    308   void Orxonox::clientInit(String path)
     308  void Orxonox::clientInit(std::string path)
    309309  {
    310310    COUT(2) << "initialising client" << std::endl;
     
    321321  void Orxonox::defineResources()
    322322  {
    323     String secName, typeName, archName;
     323    std::string secName, typeName, archName;
    324324    Ogre::ConfigFile cf;
    325325#if OGRE_PLATFORM == OGRE_PLATFORM_APPLE
     
    340340        archName = i->second;
    341341#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);
    343343#else
    344344        Ogre::ResourceGroupManager::getSingleton().addResourceLocation( archName, typeName, secName);
     
    426426    // fixes auto repeat problem
    427427    #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")));
    429429    #endif
    430430
     
    432432    win->getCustomAttribute("WINDOW", &windowHnd);
    433433    windowHndStr << windowHnd;
    434     pl.insert(std::make_pair(String("WINDOW"), windowHndStr.str()));
     434    pl.insert(std::make_pair(std::string("WINDOW"), windowHndStr.str()));
    435435    inputManager_ = OIS::InputManager::createInputSystem(pl);
    436436
Note: See TracChangeset for help on using the changeset viewer.