Skip to content

Commit

Permalink
Also respect Windows absolute paths.
Browse files Browse the repository at this point in the history
  • Loading branch information
unknownbrackets committed Oct 12, 2013
1 parent 8778173 commit 49983fa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Core/Config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,11 @@ const std::string Config::FindConfigFile(const std::string &baseFilename) {
if (baseFilename.size() > 1 && baseFilename[0] == '/') {
return baseFilename;
}
#ifdef _WIN32
if (baseFilename.size() > 3 && baseFilename[1] == ':' && (baseFilename[2] == '/' || baseFilename[2] == '\\')) {
return baseFilename;
}
#endif

for (size_t i = 0; i < searchPath_.size(); ++i) {
std::string filename = searchPath_[i] + baseFilename;
Expand Down

0 comments on commit 49983fa

Please sign in to comment.