Minggo Zhang wrote:
You can put the same resolution resource in a directory, and use the CCFileUtils::addResourceDirectory() to add the directory. Cocos2d-x will find resource from the directory set, it it is not found, it will find the resource without the directory.
You can refer TestCpp for detail information.
no such function in 2.0.4? When publish from cocosbuilder, it removes the relative dir, for example, the sprite ref png “npc/monster1.png”, “npc” relative to parent “resource”, when read by ccbreader, only get “monster1.png”, and we can only set resourcedir to “resource”, and assert occurs. That confused me, any suggestion?