I am using CCTextureCache::sharedTextureCache()->addPVRImage(“/data/data/com.mycompany/a_texture_file”);
but CCFileUtils::getFileData prepends “assets/”
so the path become “assets//data/data/com.mycompany/a_texture_file”
Thanks for your feedback!
In the situation you described, you want to read a texture file which is not in assets directory.
Sorry that the methods in the engine only support read resource files in the assets directory of the apk file.
And the parameter of the function CCTextureCache::addPVRImage() should be the relative path of assets directory.
If you want read resource files in the system folders but not in the apk file, you must use fopen/fclose to implement that!
Or if you have much better ideas, welcome to share with us!