Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5423 in orxonox.OLD for trunk/src


Ignore:
Timestamp:
Oct 22, 2005, 4:26:00 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: better check for the Data-Directory

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/orxonox.cc

    r5335 r5423  
    266266    if (!ResourceManager::getInstance()->setDataDir(dataPath))
    267267    {
    268       PRINTF(1)("Data Could not be located\n");
    269       exit(-1);
     268      PRINTF(1)("Data Could not be located in %s\n", dataPath);
    270269    }
    271270  }
  • trunk/src/util/resource_manager.cc

    r5422 r5423  
    5858  this->setName("ResourceManager");
    5959
    60   this->dataDir = NULL;
     60  this->dataDir = new char[3];
     61  strcpy(this->dataDir, "./");
    6162  this->setDataDir("./data");
    6263  this->imageDirs = new tList<char>;
Note: See TracChangeset for help on using the changeset viewer.