Changeset 10523 for code/branches/core7
- Timestamp:
- May 31, 2015, 2:46:32 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core7/src/libraries/core/DynLib.cc
r10295 r10523 56 56 { 57 57 mName = name; 58 #if defined(ORXONOX_PLATFORM_WINDOWS)59 //altered search path doesn't work with paths with forward slashes60 std::replace(mName.begin(), mName.end(), '/', '\\');61 #endif62 58 m_hInst = NULL; 63 59 } … … 84 80 name += ".dylib"; 85 81 #elif defined(ORXONOX_PLATFORM_WINDOWS) 82 //altered search path doesn't work with paths with forward slashes 83 std::replace(name.begin(), name.end(), '/', '\\'); 86 84 // Although LoadLibraryEx will add .dll itself when you only specify the library name, 87 85 // 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.