Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10523


Ignore:
Timestamp:
May 31, 2015, 2:46:32 PM (9 years ago)
Author:
landauf
Message:

bugfix: DynLib::mName must be equal to the string in the DynLibManager::mLibList map, otherwise DynLibManager isn't able to find an existing libs in this map.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core7/src/libraries/core/DynLib.cc

    r10295 r10523  
    5656    {
    5757        mName = name;
    58 #if defined(ORXONOX_PLATFORM_WINDOWS)
    59         //altered search path doesn't work with paths with forward slashes
    60         std::replace(mName.begin(), mName.end(), '/', '\\');
    61 #endif
    6258        m_hInst = NULL;
    6359    }
     
    8480            name += ".dylib";
    8581#elif defined(ORXONOX_PLATFORM_WINDOWS)
     82        //altered search path doesn't work with paths with forward slashes
     83        std::replace(name.begin(), name.end(), '/', '\\');
    8684        // Although LoadLibraryEx will add .dll itself when you only specify the library name,
    8785        // if you include a relative path then it does not. So, add it to be sure.
Note: See TracChangeset for help on using the changeset viewer.