Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7266 in orxonox.OLD for branches/shared_lib/src/lib


Ignore:
Timestamp:
Apr 2, 2006, 5:40:29 PM (19 years ago)
Author:
bensch
Message:

compile, but does not load anything… i do absolutely not get why :/

Location:
branches/shared_lib/src/lib/util/loading
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/shared_lib/src/lib/util/loading/dynamic_loader.cc

    r7264 r7266  
    103103  if (ResourceManager::isDir(absSearchDir))
    104104  {
     105    //printf("ADDED %s\n", absSearchDir.c_str());
    105106    DynamicLoader::addSearchDir(absSearchDir);
    106107    return true;
     
    108109  else
    109110  {
     111    //printf("not a directory %s\n", absSearchDir.c_str());
    110112    return false;
    111113  }
  • branches/shared_lib/src/lib/util/loading/resource_manager.cc

    r7264 r7266  
    870870    return "";
    871871  std::string retName = name;
    872   if (strncmp(name.c_str(), "/", 1))
     872  if (name[0] != '/')
    873873  {
    874874    if (name[0] == '.' && name[1] != '.')
    875       retName.erase(0);
    876     const std::string& absDir = ResourceManager::cwd();
    877     retName = absDir + retName;
     875      retName.erase(0, 1);
     876    retName = ResourceManager::cwd() + retName;
    878877  }
    879878  return retName;
Note: See TracChangeset for help on using the changeset viewer.