CCBProxy类在解析ccbi文件是会出错,应为它在解析时少了对CCNode的解析。修改源码如下:
const char* CCBProxy::getNodeTypeName(CCNode* pNode)
{
if (NULL == pNode) {
return NULL;
}
if (NULL != dynamic_cast
return "CCLabelTTF";
}
if (NULL != dynamic_cast
return "CCLabelBMFont";
}
if (NULL != dynamic_cast
return "CCSprite";
}
if (NULL != dynamic_cast
return "CCControlButton";
}
if (NULL != dynamic_cast
return "CCLayerGradient";
}
if (NULL != dynamic_cast
return "CCLayerColor";
}
if (NULL != dynamic_cast
return "CCLayerGradient";
}
if (NULL != dynamic_cast
return "CCMenu";
}
if (NULL != dynamic_cast
return "CCMenuItemAtlasFont";
}
if (NULL != dynamic_cast
return "CCMenuItemFont";
}
if (NULL != dynamic_cast
return "CCMenuItemLabel";
}
if (NULL != dynamic_cast
return "CCMenuItemImage";
}
if (NULL != dynamic_cast
return "CCMenuItemToggle";
}
if (NULL != dynamic_cast
return "CCMenuItemSprite";
}
if (NULL != dynamic_cast
return "CCMenuItem";
}
if (NULL != dynamic_cast
return "CCLayer";
}
if (NULL != dynamic_cast
return "CCString";
}
if (NULL != dynamic_cast
return "CCParticleSystemQuad";
}
//修改
if (NULL != dynamic_cast
return "CCNode";
}
return "No Support";
}