Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4132 in orxonox.OLD for orxonox/trunk/src/orxonox.cc


Ignore:
Timestamp:
May 9, 2005, 9:59:25 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: orxonox —help now shows something more usefull… still cleaning up the GUI

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/orxonox.cc

    r4131 r4132  
    220220  PRINT(3)("initializing TextEngine\n");
    221221  TextEngine::getInstance();
     222
     223  return 0;
    222224}
    223225
     
    353355  for(i = 1; i < argc; ++i)
    354356    {
    355       if(! strcmp( "--help", argv[i])) return startHelp();
     357      if(! strcmp( "--help", argv[i])) return startHelp(argc, argv);
    356358      else if(! strcmp( "--benchmark", argv[i])) return startBenchmarks();
    357359      else if(! strcmp( "--gui", argv[i]) || !strcmp("-g", argv[i])) showGui = true;
     
    364366
    365367
    366 int startHelp()
     368int startHelp(int argc, char** argv)
    367369{
    368370  PRINT(0)("orxonox: starts the orxonox game - rules\n");
     
    372374  PRINT(0)(" --help \tshows this menu\n");
    373375  PRINT(0)(" --gui/-g \tDisplays the Gui on startup\n");
     376 
     377  {
     378    Gui* gui = new Gui(argc, argv);
     379    gui->printHelp();
     380    delete gui;
     381  }
    374382}
    375383
     
    384392      if (ResourceManager::isFile("~/.orxonox/orxonox.lock"))
    385393        ResourceManager::deleteFile("~/.orxonox/orxonox.lock");
    386       //      char* guiExec = new char[strlen(argv[0])+20];
    387       //      sprintf(guiExec,"%sGui --gui", argv[0]);
     394     
     395      // starting the GUI
    388396      Gui* gui = new Gui(argc, argv);
     397      gui->startGui();
     398
    389399      if (! gui->startOrxonox)
    390400        return 0;
Note: See TracChangeset for help on using the changeset viewer.