查了很多资料还是没有关于这方面的说法。不知道我哪里弄错了。
我的版本是quick3.3。
1】使用pack_files.bat -i res -o resSec -ek 123456 -es 654321
2】我在CCImage.cpp中添加了 HelperFunc.h 。然后在Image::initWithImageFile中将
Data data = FileUtils::getInstance()->getDataFromFile(_filePath); 改为 Data data = HelperFunc::getData(_filePath);
3】在AppDelegate.cpp中AppDelegate::applicationDidFinishLaunching()里面添加了stack->setXXTEAKeyAndSign(“123456”, strlen(“123456”), “654321”, strlen(“654321”));
然后就编译整个player,顺利后。运行,然后在加载加密图片资源的时候就报错了。
display.c_left = -320.00
display.c_right = 320.00
display.c_top = 480.00
display.c_bottom = -480.00
cocos2d: the file is not a dds file!
cocos3d: the file is not a ktx file!
ASSERT FAILED ON LUA EXECUTE: unsupport image format!
libpng warning: iCCP: known incorrect sRGB profile
不知道这个是什么问题,请指教。