Hi, I’m developing a game with cocos2d-x jsb.
I have built a hot update system for the game. But every time when the game complete the update, I want the game restart automatically.
So the engine could have a chance to purge all cached data and start over again for some of the resources may have changed since the update.
I am thinking a way to restart CCDirector gracefully( means with cross platform support ).
CCDirector can be shutdown by pop all scenes out of stack. Then CCDirector will die after a frame.
Then I want to find a proper point to call CCApplication::run to restart all the things. But I failed to found one.
Any someone familiar with cocos2d-x low level components life cycle, can you give me some hints to do this?