Changeset 8749 in orxonox.OLD for trunk/src/orxonox.cc
- Timestamp:
- Jun 23, 2006, 5:08:04 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/orxonox.cc
r8623 r8749 31 31 32 32 #include "gui/qt/qt_gui.h" 33 #include "gui/qt/qt_gui_datadir_fallback.h" 33 34 34 35 #include "parser/ini_parser/ini_parser.h" … … 227 228 // initialize everything 228 229 SDL_Init(0); 230 if( initVideo() == -1) 231 return -1; 229 232 if( initResources () == -1) 230 return -1;231 if( initVideo() == -1)232 233 return -1; 233 234 if( initSound() == -1) … … 286 287 PRINT(3)("> Initializing input\n"); 287 288 288 EventHandler::getInstance()->289 289 EventHandler::getInstance()->init(); 290 290 EventHandler::getInstance()->subscribe(GraphicsEngine::getInstance(), ES_ALL, EV_VIDEO_RESIZE); … … 336 336 } 337 337 338 if (!ResourceManager::getInstance()->verifyDataDir(DEFAULT_DATA_DIR_CHECKFILE)) 339 { 338 339 while (!ResourceManager::getInstance()->verifyDataDir(DEFAULT_DATA_DIR_CHECKFILE)) 340 { 341 340 342 PRINTF(1)("The DataDirectory %s could not be verified\n\nh" \ 341 343 "!!! Please Change in File %s Section %s Entry %s to a suitable value !!!\n", … … 344 346 CONFIG_SECTION_GENERAL, 345 347 CONFIG_NAME_DATADIR ); 346 OrxGui::Gui* gui = new OrxGui::QtGui (argc, argv);348 OrxGui::Gui* gui = new OrxGui::QtGuiDataDirFallback(argc, argv); 347 349 gui->startGui(); 348 350 delete gui; 349 exit(-1); 350 } 351 ResourceManager::getInstance()->setDataDir(Preferences::getInstance()->getString(CONFIG_SECTION_GENERAL, CONFIG_NAME_DATADIR, "")); 352 353 } 354 355 351 356 //! @todo this is a hack and should be loadable 352 357 std::string imageDir = ResourceManager::getInstance()->getFullName("maps"); … … 356 361 357 362 // DynamicLoader::loadDyLib("libtest.so"); 363 return 0; 364 } 365 366 /** 367 * initializes miscelaneous features 368 * @return -1 on failure 369 */ 370 int Orxonox::initMisc() 371 { 372 OrxShell::ShellBuffer::getInstance(); 358 373 359 374 // start the collision detection engine 360 375 CDEngine::getInstance(); 361 return 0; 362 } 363 364 /** 365 * initializes miscelaneous features 366 * @return -1 on failure 367 */ 368 int Orxonox::initMisc() 369 { 370 OrxShell::ShellBuffer::getInstance(); 376 371 377 return 0; 372 378 }
Note: See TracChangeset
for help on using the changeset viewer.