Handle both \ and / on Windows paths.

This commit is contained in:
Unknown W. Brackets committed 2012-12-10 22:55:56 -08:00
1 parent c3643077f8
commit 3ae4acc7d6
4 files changed
+17 -7

No files matched your search

+2 -2
View File
@@ -211,8 +211,8 @@ void BuildCompleteFilename(std::string& _CompleteFilename, const std::string& _P
_CompleteFilename = _Path;
// check for seperator
if (DIR_SEP_CHR != *_CompleteFilename.rbegin())
_CompleteFilename += DIR_SEP_CHR;
if (!strchr(DIR_SEP_CHRS, *_CompleteFilename.rbegin()))
_CompleteFilename += DIR_SEP;
// add the filename
_CompleteFilename += _Filename;