I have a problem dealing with the APK expansions. On Java side, I could set up everything I supposed to set, but it seems I can't modify the code properly on c++ side.
Inside the CCFileUtilsAndroid::getFileData function:
if (fullPath[0] != '/')
{
CCLOG("GETTING FILE RELATIVE DATA: %s", fullPath.c_str());
pData = CCFileUtils::sharedFileUtils()->getFileDataFromZip("/storage/sdcard0/Android/obb/com.example.package/main.1.com.example_package.obb", fullPath.c_str(), pSize);
}
But the pData var is always null (if I'm right, this means that it failed to load). What am I missing guys?
Many thanks in advance
(ps: the package is there, and I'm using the right path)
See Question&Answers more detail:os