Commit 13f388c6 authored by bitplane's avatar bitplane

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
parent 02c6785e
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment