From b1fb181b56582d62bed535eac42b8a5e8d77dc14 Mon Sep 17 00:00:00 2001 From: liria Date: Sat, 25 Jan 2014 17:09:07 +0100 Subject: [PATCH] use NEL CFile function for file test --- code/nel/tools/3d/lightmap_optimizer/main.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/code/nel/tools/3d/lightmap_optimizer/main.cpp b/code/nel/tools/3d/lightmap_optimizer/main.cpp index db7f66d6a..25b5678ea 100644 --- a/code/nel/tools/3d/lightmap_optimizer/main.cpp +++ b/code/nel/tools/3d/lightmap_optimizer/main.cpp @@ -150,12 +150,7 @@ void outString (const string &sText) // --------------------------------------------------------------------------- bool fileExist (const std::string &sFileName) { -#ifdef NL_OS_WINDOWS - return (GetFileAttributes(sFileName.c_str()) != INVALID_FILE_ATTRIBUTES); -#else // NL_OS_WINDOWS - struct stat buf; - return stat (sFileName.c_str (), &buf) == 0; -#endif // NL_OS_WINDOWS + return NLMISC::CFile::isExists(sFileName) ; } // -----------------------------------------------------------------------------------------------