原文鏈接:http://blog.csdn.net/zhangxaochen/article/details/8024459
原因在於引擎裏CCFileUtils.cpp 中函數
const char* CCFileUtils::fullPathFromRelativePath(const char *pszRelativePath, ccResolutionType *pResolutionType)
函數返回值的小bug,需要把
return "";
改成:
return pszRelativePath;
即可。。
論壇裏有這個bug的討論:
http://www.cocos2d-x.org/boards/6/topics/9944
當然如果用的是2.0x應該沒這個問題了。我碰到這個問題的時候用的是1.0-0.13-beta版
原文鏈接:http://blog.csdn.net/zhangxaochen/article/details/8024459
{{OVER}}