- cocos2d-x version:3.17.2 ( [3f26b75])
- devices test on: iPhone and Android
- developing environments
- NDK version: r16b
- Xcode version: 11.0 and 10.3
std::string fullpath = cocos2d::FileUtils::getInstance()->fullPathForFilename(filepath);
Data zipdata;
cocos2d::FileUtils::getInstance()->getContents(fullpath,&zipdata);
cocos2d::ZipFile* zipfile = cocos2d::ZipFile::createWithBuffer(zipdata.getBytes(), zipdata.getSize());
for( std::string filename = zipfile->getFirstFilename(); !filename.empty(); filename = zipfile->getNextFilename() ){
.......
}
The zipfile is in an incorrect state.