Fixed removeDirectory function on windows.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7584 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2011-02-02 23:13:29 +00:00
parent 11acadafdf
commit ac80387d20

View File

@ -34,6 +34,7 @@
// For RemoveDirectory
#else
# include <direct.h>
# include <Windows.h>
#endif
/*Needed by the remove directory function */
@ -750,8 +751,7 @@ bool FileManager::removeDirectory(const std::string &name) const
}
}
#ifdef WIN32
//FIXME return RemoveDirectory(name.c_str());
return false;
return RemoveDirectory(name.c_str())==TRUE;
#else
return remove(name.c_str())==0;
#endif