when my resourcePath is not empty and it is a relative path like “./res/”, it ran error.
void CCSpriteFrameCache::addSpriteFramesWithFile(const char *pszPlist)
at first, set pszPath to so-called FULL path of the .plist file.
<pre>const charpszPath = CCFileUtils::fullPathFromRelativePath(pszPlist);\*
in followed, textureBase was the so-called FULL path of .plist file.
and then, texture path is relative path from textureBase, so it must be FULL path.
<pre>texturePath = textureBase + “/” + texturePath;</pre>
if resourcePath is ./res, when call the function with “myplist.list”
the above so-called FULL path should be “./res/myplist.list” and “./res/myplist.png”
now, the bug
<pre>CCTexture2DpTexture = CCTextureCache::sharedTextureCache()->addImage(texturePath.c_str());
CCTextureCache::addImage can only use relative path,
the so-called FULL path was be regarded as a relative path,
so app prompt: “./res/./res/myplist.png” cannot found.