Commit 04e788ae authored by hybrid's avatar hybrid

Fixed getAbsoluteFilename under Linux in case the file does not exist. Did...

Fixed getAbsoluteFilename under Linux in case the file does not exist. Did simply return an empty string, now it returns the original filename.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1685 dfc29bdd-3216-0410-991c-e03cc46cb475
parent a5c1b8e1
...@@ -218,6 +218,8 @@ core::stringc CFileSystem::getAbsolutePath(const core::stringc& filename) const ...@@ -218,6 +218,8 @@ core::stringc CFileSystem::getAbsolutePath(const core::stringc& filename) const
#elif (defined(_IRR_POSIX_API_) || defined(_IRR_OSX_PLATFORM_)) #elif (defined(_IRR_POSIX_API_) || defined(_IRR_OSX_PLATFORM_))
c8 fpath[4096]; c8 fpath[4096];
p = realpath(filename.c_str(), fpath); p = realpath(filename.c_str(), fpath);
if (!p)
return filename;
#endif #endif
return core::stringc(p); return core::stringc(p);
......
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