mirror of https://github.com/axmolengine/axmol.git
Update cocos2dx/platform/ios/CCFileUtils.mm
fix the problem when calling CCFileUtils::sharedFileUtils()->getFileData("a.png") doesn't work.
This commit is contained in:
parent
822dde27ef
commit
088e568c8e
|
@ -272,7 +272,8 @@ unsigned char* CCFileUtils::getFileData(const char* pszFileName, const char* psz
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
// read the file from hardware
|
// read the file from hardware
|
||||||
FILE *fp = fopen(pszFileName, pszMode);
|
std::string fullPath = fullPathFromRelativePath(pszFileName);
|
||||||
|
FILE *fp = fopen(fullPath.c_str(), pszMode);
|
||||||
CC_BREAK_IF(!fp);
|
CC_BREAK_IF(!fp);
|
||||||
|
|
||||||
fseek(fp,0,SEEK_END);
|
fseek(fp,0,SEEK_END);
|
||||||
|
|
Loading…
Reference in New Issue