Changeset 7608 in orxonox.OLD for branches/qt_gui/src/orxonox.cc
- Timestamp:
- May 12, 2006, 10:43:53 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/qt_gui/src/orxonox.cc
r7460 r7608 30 30 #include "globals.h" 31 31 32 #include "gui .h"32 #include "gui/qt_gui/qt_gui.h" 33 33 34 34 #include "parser/ini_parser/ini_parser.h" … … 280 280 PRINT(3)("> Initializing input\n"); 281 281 282 EventHandler::getInstance()-> 282 283 EventHandler::getInstance()->init(); 283 284 EventHandler::getInstance()->subscribe(GraphicsEngine::getInstance(), ES_ALL, EV_VIDEO_RESIZE); … … 319 320 // init the resource manager 320 321 std::string dataPath; 321 if ((dataPath = Preferences::getInstance()->getString(CONFIG_SECTION_ DATA, CONFIG_NAME_DATADIR, ""))!= "")322 if ((dataPath = Preferences::getInstance()->getString(CONFIG_SECTION_GENERAL, CONFIG_NAME_DATADIR, ""))!= "") 322 323 { 323 324 if (!ResourceManager::getInstance()->setDataDir(dataPath) && … … 334 335 ResourceManager::getInstance()->getDataDir().c_str(), 335 336 this->configFileName.c_str(), 336 CONFIG_SECTION_ DATA,337 CONFIG_SECTION_GENERAL, 337 338 CONFIG_NAME_DATADIR ); 338 Gui* gui = newGui(argc, argv);339 OrxGui::Gui* gui = new OrxGui::QtGui(argc, argv); 339 340 gui->startGui(); 340 341 delete gui; … … 426 427 427 428 IniFilePrefsReader ini(ResourceManager::homeDirCheck(DEFAULT_CONFIG_FILE)); 429 Preferences::getInstance()->setUserIni(ResourceManager::homeDirCheck(DEFAULT_CONFIG_FILE)); 428 430 429 431 prefs.parse(argc, argv); … … 512 514 513 515 // starting the GUI 514 Gui* gui = new Gui(argc, argv);515 gui ->startGui();516 517 if ( ! gui->startOrxonox)516 OrxGui::QtGui gui(argc, argv); 517 gui.startGui(); 518 519 if (gui.getState() & OrxGui::Gui::Quitting) 518 520 return 0; 519 521 520 delete gui;521 522 } 522 523
Note: See TracChangeset
for help on using the changeset viewer.