Hi all.
I followed this: http://paralaxer.com/cocos2d-x-project-setup/ to create a cross-platform project.
I’ve successfully compiled it and have it run on my Kindle Fire.
Now the issue is that my XML files which are placed into ipad/Data and iphone/Data are not properly being fetched in Kindle Fire.
However, it works perfectly fine in any iOS devices. What seems to be the problem?
I am using cocos2d-2.0-x-2.0.4.
Thanks in advance.
I’ve located the source of the problem.
CCFileUtils::sharedFileUtils -> fullPathFromRelativePath; returns only “/Data/data.xml” when on an Android device.
How can I get the full path of a file in cocos2d-x Android?
After looking around the cocos2d-x source files on GitHub, I found that fullPathFromRelativePath* will return only what I passed onto it.
<pre>
const char CCFileUtils::fullPathFromRelativePath(const char *pszRelativePath)
{
return pszRelativePath;
}
Is this a bug or is this intended?