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
master
hybrid 2008-11-04 15:32:24 +00:00
parent a5c1b8e109
commit 04e788aeeb
1 changed files with 2 additions and 0 deletions

View File

@ -218,6 +218,8 @@ core::stringc CFileSystem::getAbsolutePath(const core::stringc& filename) const
#elif (defined(_IRR_POSIX_API_) || defined(_IRR_OSX_PLATFORM_))
c8 fpath[4096];
p = realpath(filename.c_str(), fpath);
if (!p)
return filename;
#endif
return core::stringc(p);