fgValidatePath: fix \ vs / Windows bug
This commit is contained in:
parent
5b2ae615e5
commit
6957a17434
1 changed files with 3 additions and 0 deletions
|
@ -216,6 +216,9 @@ std::string fgValidatePath (const std::string& path, bool write)
|
|||
normed_path2 = SGPath(path2.dir()).realpath()
|
||||
+ "/" + path2.file();
|
||||
}
|
||||
#if defined(_MSC_VER) /*for MS compilers */ || defined(_WIN32) /*needed for non MS windows compilers like MingW*/
|
||||
normed_path2 = SGPath(normed_path2).str(); // convert \ to /
|
||||
#endif
|
||||
|
||||
// Check
|
||||
if (fgValidatePath_internal(normed_path1, write).empty() ||
|
||||
|
|
Loading…
Add table
Reference in a new issue