Handle both \ and / on Windows paths.

This commit is contained in:
Unknown W. Brackets 2012-12-10 22:55:43 -08:00
parent c3643077f8
commit 3ae4acc7d6
4 changed files with 17 additions and 7 deletions

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;