mirror of https://github.com/axmolengine/axmol.git
21 lines
392 B
C
21 lines
392 B
C
|
#ifndef _FILE_UTILS_H_
|
||
|
#define _FILE_UTILS_H_
|
||
|
|
||
|
#include "TG3.h"
|
||
|
|
||
|
class FileUtils
|
||
|
{
|
||
|
public:
|
||
|
static bool isFileExisted(const char* pFilePath)
|
||
|
{
|
||
|
TUChar fileName[MAX_PATH] = {0};
|
||
|
TUString::StrGBToUnicode(fileName, (const Char*)pFilePath);
|
||
|
|
||
|
Boolean bExisted = EOS_IsFileExist(fileName);
|
||
|
|
||
|
return bExisted ? true : false;
|
||
|
}
|
||
|
};
|
||
|
|
||
|
#endif
|