Skip to content

Commit

Permalink
Don't try to expand ${VAR} syntax under Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
dscharrer committed Jul 10, 2013
1 parent cf4e092 commit d3e16b6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/io/fs/SystemPaths.cpp
Expand Up @@ -176,13 +176,15 @@ std::vector<path> SystemPaths::getSearchPaths(bool filter) const {

// Check paths specified in environment variables
path exepath = getExecutablePath();
#if ARX_PLATFORM != ARX_PLATFORM_WIN32
if(!exepath.empty()) {
std::string var = "${" + exepath.basename() + "_PATH}";
std::vector<path> paths = fs::getSearchPaths(var.c_str());
BOOST_FOREACH(const path & p, paths) {
addSearchPath(result, p, filter);
}
}
#endif

// Check system settings (windows registry)
std::string temp;
Expand Down

0 comments on commit d3e16b6

Please sign in to comment.