Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7247 in orxonox.OLD for branches/preferences/src/subprojects


Ignore:
Timestamp:
Mar 24, 2006, 6:24:41 PM (19 years ago)
Author:
rennerc
Message:

removed several iniParser

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/preferences/src/subprojects/framework.cc

    r7193 r7247  
    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.