Page 1 of 1

not returning getWorkingDirectory value in Linux, solved

Posted: Wed May 04, 2005 7:17 am
by ondrew
Hi,

the getWorkingDirectory function always returns null under Linux. In CFileSystem.cpp, line 105-108 is

Code: Select all

#ifdef LINUX
        getcwd(WorkingDirectory, (size_t)FILE_SYSTEM_MAX_PATH);
#endif
and should be

Code: Select all

#ifdef LINUX
        getcwd(WorkingDirectory, (size_t)FILE_SYSTEM_MAX_PATH);
        return WorkingDirectory;
#endif

Posted: Wed May 04, 2005 11:25 am
by jox
This has been reported several times. Last time by me two weeks ago:

http://irrlicht.sourceforge.net/phpBB2/ ... hp?p=37393

Hopefully Niko will fix it sometime. :)

Posted: Wed May 04, 2005 2:33 pm
by ondrew
Damn, I was so happy to find a bug and a fix, that I didn't even search the forum to check if it hasn't been already submitted :oops:

Posted: Thu May 05, 2005 11:14 am
by niko
Np, at least I got reminded of that bug, so I'll fix it in the next release. :)