Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3129 in orxonox.OLD for orxonox/branches/images/importer/material.cc


Ignore:
Timestamp:
Dec 7, 2004, 8:54:09 PM (21 years ago)
Author:
bensch
Message:

orxonox/branches/images: pathlist now also accepts Paths from Windows.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/images/importer/material.cc

    r3128 r3129  
    5858      return;
    5959    }
    60  
    61   if (access (pName, F_OK) == 0)
     60  char* tmpPName = new char[strlen(pName)];
     61  strncpy(tmpPName, pName, strlen(pName)-1);
     62
     63  if (access (tmpPName, F_OK) == 0)
    6264    {
    6365      struct stat status;
    64       stat(pName, &status);
     66      stat(tmpPName, &status);
    6567      if (status.st_mode & S_IFDIR)
    6668        {
     
    7981    if (verbose >=1)
    8082      printf ("You tried to add non-existing folder %s to a PathList.\n", pName);
     83  delete []tmpPName;
    8184}
    8285
Note: See TracChangeset for help on using the changeset viewer.