Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 1, 2015, 9:59:53 PM (10 years ago)
Author:
muemart
Message:

Avoid using the system path variables on windows (also gets rid of two MSVC warnings)
The altered search path already includes the dll's directory, but it didn't work with forward slashes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/libraries/core/PathConfig.cc

    r9667 r10295  
    260260        size_t moduleextensionlength = moduleextension.size();
    261261
    262 #ifdef ORXONOX_PLATFORM_WINDOWS
    263         // Add that path to the PATH variable in case a module depends on another one
    264         const char* currentPATH = getenv("PATH");
    265         std::string newPATH = modulePath_.BF_NATIVE_STRING();
    266         if (currentPATH != NULL)
    267             newPATH = std::string(currentPATH) + ';' + newPATH;
    268         putenv(const_cast<char*>(("PATH=" + newPATH).c_str()));
    269 #endif
    270 
    271262        // Make sure the path exists, otherwise don't load modules
    272263        if (!boost::filesystem::exists(modulePath_))
Note: See TracChangeset for help on using the changeset viewer.