Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7248 in orxonox.OLD for branches/preferences/src/orxonox.cc


Ignore:
Timestamp:
Mar 24, 2006, 7:03:22 PM (18 years ago)
Author:
rennerc
Message:

removed some more iniParsers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/preferences/src/orxonox.cc

    r7247 r7248  
    7878  this->setName("orxonox-main");
    7979
    80   this->iniParser = NULL;
    81 
    8280  this->argc = 0;
    8381  this->argv = NULL;
     
    115113  // output-buffer
    116114  delete ShellBuffer::getInstance();
    117 
    118   // orxonox class-stuff
    119   delete this->iniParser;
    120115
    121116  SDL_QuitSubSystem(SDL_INIT_TIMER);
     
    176171  else
    177172    this->configFileName = ResourceManager::homeDirCheck(DEFAULT_CONFIG_FILE);
    178   this->iniParser = new IniParser(this->configFileName);
     173
    179174  PRINTF(3)("Parsed Config File: '%s'\n", this->configFileName);
    180175}
     
    261256  PRINT(3)("> Initializing input\n");
    262257
    263   EventHandler::getInstance()->init(this->iniParser);
     258  EventHandler::getInstance()->init();
    264259  EventHandler::getInstance()->subscribe(GraphicsEngine::getInstance(), ES_ALL, EV_VIDEO_RESIZE);
    265260
     
    300295  // init the resource manager
    301296  std::string dataPath;
    302   if ((dataPath = this->iniParser->getVar(CONFIG_NAME_DATADIR, CONFIG_SECTION_DATA))!= "")
     297  if ((dataPath = Preferences::getInstance()->getString(CONFIG_SECTION_DATA, CONFIG_NAME_DATADIR, ""))!= "")
    303298  {
    304299    if (!ResourceManager::getInstance()->setDataDir(dataPath) &&
Note: See TracChangeset for help on using the changeset viewer.