Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Apr 26, 2006, 3:28:55 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: added new Files shell_completion_plugin for the new Plugin Structure.
Also created the first namespace: OrxShell

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/orxonox.cc

    r7355 r7374  
    116116  Factory::deleteFactories();
    117117  FastFactory::deleteAll();
    118   ShellCommandClass::unregisterAllCommands();
     118  OrxShell::ShellCommandClass::unregisterAllCommands();
    119119
    120120  LoadClassDescription::deleteAllDescriptions();
     
    129129  delete ResourceManager::getInstance(); // deletes the Resource Manager
    130130  // output-buffer
    131   delete ShellBuffer::getInstance();
     131  delete OrxShell::ShellBuffer::getInstance();
    132132
    133133  SDL_QuitSubSystem(SDL_INIT_TIMER);
     
    353353int Orxonox::initMisc()
    354354{
    355   ShellBuffer::getInstance();
     355  OrxShell::ShellBuffer::getInstance();
    356356  return 0;
    357357}
     
    417417{
    418418  CmdLinePrefsReader prefs;
    419  
     419
    420420  IniFilePrefsReader ini(ResourceManager::homeDirCheck(DEFAULT_CONFIG_FILE));
    421  
     421
    422422  prefs.parse(argc, argv);
    423  
     423
    424424  if ( Preferences::getInstance()->getString("misc", "showLicenseAndExit", "") == "1" )
    425425  {
     
    427427    return 0;
    428428  }
    429  
     429
    430430  if( Preferences::getInstance()->getString("game", "showGui", "") == "1" )
    431431    showGui = true;
     
    433433           Preferences::getInstance()->getString( "game", "gameType", "" ) == "multiplayer_client" )
    434434    return startNetworkOrxonox(argc, argv);
    435  
     435
    436436  return startOrxonox(argc, argv, "", -1);
    437437  return 0;
     
    449449
    450450  std::string gameType = Preferences::getInstance()->getString( "game", "gameType", "" );
    451  
     451
    452452  if ( gameType == "multiplayer_client" )
    453453  {
    454454    int port = Preferences::getInstance()->getInt( "game", "port", DEFAULT_ORXONOX_PORT );
    455455    std::string host = Preferences::getInstance()->getString( "game", "host", "" );
    456    
     456
    457457    if ( host == "" )
    458458    {
     
    460460      return 1;
    461461    }
    462    
     462
    463463    printf("Starting Orxonox as client: connecting to %s, on port %i\n", host.c_str(), port);
    464    
     464
    465465    startOrxonox(argc, argv, host.c_str(), port);
    466466  }
     
    468468  {
    469469    int port = Preferences::getInstance()->getInt( "game", "port", DEFAULT_ORXONOX_PORT );
    470    
     470
    471471    printf("Starting Orxonox as server: listening on port %i\n", port);
    472    
     472
    473473    startOrxonox(argc, argv, "", port);
    474474  }
Note: See TracChangeset for help on using the changeset viewer.