Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7367 in orxonox.OLD for branches/cd/src/subprojects


Ignore:
Timestamp:
Apr 25, 2006, 3:37:53 PM (19 years ago)
Author:
bensch
Message:

Framework hack

File:
1 edited

Legend:

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

    r7256 r7367  
    3434  LightManager::getInstance();
    3535
    36   const char* dataPath;
    37   if ((dataPath = Preferences::getInstance()->getString(CONFIG_SECTION_DATA, CONFIG_NAME_DATADIR, ""))!= NULL)
     36  std::string dataPath = //Preferences::getInstance()->getString(CONFIG_SECTION_DATA, CONFIG_NAME_DATADIR, "");
     37    "/home/grauerb/svn/orxonox/data";
     38  printf("%s\n", dataPath.c_str());
     39  if (!dataPath.empty())
    3840  {
    3941    if (!ResourceManager::getInstance()->setDataDir(dataPath))
     
    4850    PRINTF(1)("The DataDirectory %s could not be verified\n" \
    4951        "  Please Change in File %s Section %s Entry %s to a suitable value\n",
    50     ResourceManager::getInstance()->getDataDir(),
     52    ResourceManager::getInstance()->getDataDir().c_str(),
    5153    DEFAULT_CONFIG_FILE,
    5254    CONFIG_SECTION_DATA,
Note: See TracChangeset for help on using the changeset viewer.