Changeset 7248 in orxonox.OLD for branches/preferences/src/orxonox.cc
- Timestamp:
- Mar 24, 2006, 7:03:22 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/preferences/src/orxonox.cc
r7247 r7248 78 78 this->setName("orxonox-main"); 79 79 80 this->iniParser = NULL;81 82 80 this->argc = 0; 83 81 this->argv = NULL; … … 115 113 // output-buffer 116 114 delete ShellBuffer::getInstance(); 117 118 // orxonox class-stuff119 delete this->iniParser;120 115 121 116 SDL_QuitSubSystem(SDL_INIT_TIMER); … … 176 171 else 177 172 this->configFileName = ResourceManager::homeDirCheck(DEFAULT_CONFIG_FILE); 178 this->iniParser = new IniParser(this->configFileName); 173 179 174 PRINTF(3)("Parsed Config File: '%s'\n", this->configFileName); 180 175 } … … 261 256 PRINT(3)("> Initializing input\n"); 262 257 263 EventHandler::getInstance()->init( this->iniParser);258 EventHandler::getInstance()->init(); 264 259 EventHandler::getInstance()->subscribe(GraphicsEngine::getInstance(), ES_ALL, EV_VIDEO_RESIZE); 265 260 … … 300 295 // init the resource manager 301 296 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, ""))!= "") 303 298 { 304 299 if (!ResourceManager::getInstance()->setDataDir(dataPath) &&
Note: See TracChangeset
for help on using the changeset viewer.