Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 16, 2007, 10:19:03 PM (18 years ago)
Author:
bknecht
Message:

suggestion for solution of WinMain problem

File:
1 edited

Legend:

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

    r545 r546  
    193193  {
    194194    ogre_ = new GraphicsEngine();
     195    dataPath_ = "";
    195196  }
    196197
     
    217218    ArgReader ar = ArgReader(argc, argv);
    218219    ar.checkArgument("mode", mode, false);
    219 //     ar.checkArgument("data-path", path, true);
     220    ar.checkArgument("data", this->dataPath_, false);
    220221    if(ar.errorHandling()) die();
    221222
     
    354355    cf.load(macBundlePath() + "/Contents/Resources/resources.cfg");
    355356#else
    356     cf.load("resources.cfg");
     357    cf.load(dataPath_ + "resources.cfg");
    357358#endif
    358359
     
    378379  void Orxonox::setupRenderSystem()
    379380  {
    380     if (!root_->restoreConfig() && !root_->showConfigDialog())
     381    if (/*!root_->restoreConfig() &&*/ !root_->showConfigDialog())
    381382      throw Exception(52, "User canceled the config dialog!", "OrxApplication::setupRenderSystem()");
    382383  }
Note: See TracChangeset for help on using the changeset viewer.