Changeset 7374 in orxonox.OLD for trunk/src/orxonox.cc
- Timestamp:
- Apr 26, 2006, 3:28:55 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/orxonox.cc
r7355 r7374 116 116 Factory::deleteFactories(); 117 117 FastFactory::deleteAll(); 118 ShellCommandClass::unregisterAllCommands();118 OrxShell::ShellCommandClass::unregisterAllCommands(); 119 119 120 120 LoadClassDescription::deleteAllDescriptions(); … … 129 129 delete ResourceManager::getInstance(); // deletes the Resource Manager 130 130 // output-buffer 131 delete ShellBuffer::getInstance();131 delete OrxShell::ShellBuffer::getInstance(); 132 132 133 133 SDL_QuitSubSystem(SDL_INIT_TIMER); … … 353 353 int Orxonox::initMisc() 354 354 { 355 ShellBuffer::getInstance();355 OrxShell::ShellBuffer::getInstance(); 356 356 return 0; 357 357 } … … 417 417 { 418 418 CmdLinePrefsReader prefs; 419 419 420 420 IniFilePrefsReader ini(ResourceManager::homeDirCheck(DEFAULT_CONFIG_FILE)); 421 421 422 422 prefs.parse(argc, argv); 423 423 424 424 if ( Preferences::getInstance()->getString("misc", "showLicenseAndExit", "") == "1" ) 425 425 { … … 427 427 return 0; 428 428 } 429 429 430 430 if( Preferences::getInstance()->getString("game", "showGui", "") == "1" ) 431 431 showGui = true; … … 433 433 Preferences::getInstance()->getString( "game", "gameType", "" ) == "multiplayer_client" ) 434 434 return startNetworkOrxonox(argc, argv); 435 435 436 436 return startOrxonox(argc, argv, "", -1); 437 437 return 0; … … 449 449 450 450 std::string gameType = Preferences::getInstance()->getString( "game", "gameType", "" ); 451 451 452 452 if ( gameType == "multiplayer_client" ) 453 453 { 454 454 int port = Preferences::getInstance()->getInt( "game", "port", DEFAULT_ORXONOX_PORT ); 455 455 std::string host = Preferences::getInstance()->getString( "game", "host", "" ); 456 456 457 457 if ( host == "" ) 458 458 { … … 460 460 return 1; 461 461 } 462 462 463 463 printf("Starting Orxonox as client: connecting to %s, on port %i\n", host.c_str(), port); 464 464 465 465 startOrxonox(argc, argv, host.c_str(), port); 466 466 } … … 468 468 { 469 469 int port = Preferences::getInstance()->getInt( "game", "port", DEFAULT_ORXONOX_PORT ); 470 470 471 471 printf("Starting Orxonox as server: listening on port %i\n", port); 472 472 473 473 startOrxonox(argc, argv, "", port); 474 474 }
Note: See TracChangeset
for help on using the changeset viewer.