Changeset 7256 in orxonox.OLD for trunk/src/subprojects
- Timestamp:
- Mar 30, 2006, 11:45:31 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/subprojects/framework.cc
r7193 r7256 23 23 #include "util/loading/resource_manager.h" 24 24 #include "camera.h" 25 #include " parser/ini_parser/ini_parser.h"25 #include "util/preferences.h" 26 26 #include "globals.h" 27 27 … … 30 30 void Framework::init(void) 31 31 { 32 // create parser 33 char* configFileName = ResourceManager::homeDirCheck(DEFAULT_CONFIG_FILE); 34 35 IniParser iniParser (configFileName); 36 delete configFileName; 37 38 GraphicsEngine::getInstance()->initFromIniFile(&iniParser); 32 GraphicsEngine::getInstance()->initFromPreferences(); 39 33 40 34 LightManager::getInstance(); 41 35 42 36 const char* dataPath; 43 if ((dataPath = iniParser.getVar(CONFIG_NAME_DATADIR, CONFIG_SECTION_DATA))!= NULL)37 if ((dataPath = Preferences::getInstance()->getString(CONFIG_SECTION_DATA, CONFIG_NAME_DATADIR, ""))!= NULL) 44 38 { 45 39 if (!ResourceManager::getInstance()->setDataDir(dataPath))
Note: See TracChangeset
for help on using the changeset viewer.