Modify the cpp template in Cocos.