Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7256 in orxonox.OLD for trunk/src/subprojects


Ignore:
Timestamp:
Mar 30, 2006, 11:45:31 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: merged the preferences back to the trunk
merged with command:
svn merge https://svn.orxonox.net/orxonox/branches/preferences . -r7233:HEAD
no conflicts… nice work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/subprojects/framework.cc

    r7193 r7256  
    2323#include "util/loading/resource_manager.h"
    2424#include "camera.h"
    25 #include "parser/ini_parser/ini_parser.h"
     25#include "util/preferences.h"
    2626#include "globals.h"
    2727
     
    3030void Framework::init(void)
    3131{
    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();
    3933
    4034  LightManager::getInstance();
    4135
    4236  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)
    4438  {
    4539    if (!ResourceManager::getInstance()->setDataDir(dataPath))
Note: See TracChangeset for help on using the changeset viewer.