Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 1, 2015, 9:59:53 PM (9 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/GraphicsManager.cc

    r10268 r10295  
    267267#  endif
    268268        }
    269 #endif
    270 
    271 #ifdef ORXONOX_PLATFORM_WINDOWS
    272         // Add OGRE plugin path to the environment. That way one plugin could
    273         // also depend on another without problems on Windows
    274         const char* currentPATH = getenv("PATH");
    275         std::string newPATH = pluginPath;
    276         if (currentPATH != NULL)
    277             newPATH = std::string(currentPATH) + ';' + newPATH;
    278         putenv(const_cast<char*>(("PATH=" + newPATH).c_str()));
    279269#endif
    280270
Note: See TracChangeset for help on using the changeset viewer.