I have packaged assets in an expansion file and now having difficulty reading from the .obb (expansion) file. Here’s a simplified version of what I’m trying to achieve:
unsigned char * pData = 0; unsigned long pSize; pData = CCFileUtils::sharedFileUtils()->getFileDataFromZip("/mnt/sdcard/Android/obb/com.example.game/main.1.com.example.game.obb", "loading_screen_sheet.png", &pSize);
Upon investigating, it seems unzOpenInternal in unzip.h is returning an error when trying to open the .obb file. I’ve enabled read write permission on external storage in the AndroidManifest.xml. I am using cocos2d-2.1rc0-x-2.1.2.
Your help would be most appreciated!