cocos2d / cocos2d-x

Cocos2d-x is a suite of open-source, cross-platform, game-development tools utilized by millions of developers across the globe. Its core has evolved to serve as the foundation for Cocos Creator 1.x & 2.x.
https://www.cocos.com/en/cocos2d-x
18.22k stars 7.05k forks source link

Get data from zip in lua #17788

Open v1993 opened 7 years ago

v1993 commented 7 years ago

I want to get resource file from zip, but it looks like it is impossible in lua or js. I think that we really need port of getFileDataFromZip in those languages.

Or did I understood purpose of this function wrong?

minggo commented 7 years ago

You can refer to https://github.com/cocos2d/cocos2d-x/issues/14341 and modify it by yourself to read data from zip file. We will add it in future.