Changeset 4132 in orxonox.OLD for orxonox/trunk/src/orxonox.cc
- Timestamp:
- May 9, 2005, 9:59:25 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/orxonox.cc
r4131 r4132 220 220 PRINT(3)("initializing TextEngine\n"); 221 221 TextEngine::getInstance(); 222 223 return 0; 222 224 } 223 225 … … 353 355 for(i = 1; i < argc; ++i) 354 356 { 355 if(! strcmp( "--help", argv[i])) return startHelp( );357 if(! strcmp( "--help", argv[i])) return startHelp(argc, argv); 356 358 else if(! strcmp( "--benchmark", argv[i])) return startBenchmarks(); 357 359 else if(! strcmp( "--gui", argv[i]) || !strcmp("-g", argv[i])) showGui = true; … … 364 366 365 367 366 int startHelp( )368 int startHelp(int argc, char** argv) 367 369 { 368 370 PRINT(0)("orxonox: starts the orxonox game - rules\n"); … … 372 374 PRINT(0)(" --help \tshows this menu\n"); 373 375 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 } 374 382 } 375 383 … … 384 392 if (ResourceManager::isFile("~/.orxonox/orxonox.lock")) 385 393 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 388 396 Gui* gui = new Gui(argc, argv); 397 gui->startGui(); 398 389 399 if (! gui->startOrxonox) 390 400 return 0;
Note: See TracChangeset
for help on using the changeset viewer.