Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7266 in orxonox.OLD for branches/shared_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
Files:
3 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;
  • branches/shared_lib/src/orxonox.cc

    r7264 r7266  
    341341  ResourceManager::getInstance()->addImageDir(imageDir);
    342342
     343
     344
    343345  if (!DynamicLoader::addSearchDirRelative("./world_entities"))
    344346    if (!DynamicLoader::addSearchDirRelative("./src/world_entities"))
     
    346348
    347349  /// FIXME make this more modular (search for himself for all the libraries
    348   printf("%s\n", DynamicLoader::getSearchDir());
     350  PRINTF(0)("We are searching for plugins in %s\n", DynamicLoader::getSearchDir());
    349351  DynamicLoader::loadDyLib("libORXplayables.la");
    350352  DynamicLoader::loadDyLib("libORXweapons.la");
     
    354356  DynamicLoader::loadDyLib("libORXenvironmentals.la");
    355357
    356   DynamicLoader::loadDyLib("libORXnpcs");
    357 
    358   DynamicLoader::loadDyLib("libORXmisc_entities");
     358  DynamicLoader::loadDyLib("libORXnpcs.la");
     359
     360  DynamicLoader::loadDyLib("libORXmisc_entities.la");
    359361  printf("%s\n", DynamicLoader::getSearchDir());
    360362
Note: See TracChangeset for help on using the changeset viewer.