oops missed some required code from the sourceforge patch

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@664 dfc29bdd-3216-0410-991c-e03cc46cb475
master
bitplane 2007-05-28 00:00:32 +00:00
parent 02c6785e3d
commit 13f388c663
1 changed files with 2 additions and 0 deletions

View File

@ -237,8 +237,10 @@ irr::core::stringc CFileSystem::getFileDir(irr::core::stringc &filename)
// find last forward or backslash
s32 lastSlash = filename.findLast('/');
#ifdef _IRR_WINDOWS_API_
s32 lastBackSlash = filename.findLast('\\');
lastSlash = lastSlash > lastBackSlash ? lastSlash : lastBackSlash;
#endif
if (lastSlash >= 0 && lastSlash < (s32)filename.size())
ret = filename.subString(0, lastSlash);