modify read config time

This commit is contained in:
chuanweizhang2013 2014-05-13 15:30:55 +08:00
parent 1c0968bbc4
commit c8d871a60b
2 changed files with 12 additions and 6 deletions

View File

@ -26,15 +26,14 @@ bool AppDelegate::applicationDidFinishLaunching()
initRuntime();
#endif
if (!ConfigParser::getInstance()->isInit()) {
ConfigParser::getInstance()->readConfig();
}
// initialize director
auto director = Director::getInstance();
auto glview = director->getOpenGLView();
if(!glview) {
if (!ConfigParser::getInstance()->isInit()) {
ConfigParser::getInstance()->readConfig();
}
Size viewSize = ConfigParser::getInstance()->getInitViewSize();
string title = ConfigParser::getInstance()->getInitViewName();
#if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32 || CC_TARGET_PLATFORM == CC_PLATFORM_MAC)

View File

@ -26,6 +26,13 @@
"from": "../../cocos2d-x/cocos/scripting/lua-bindings/script",
"to": ""
},
{
"from": "../../../res",
"to": "res",
"include": [
"config.json"
]
},
{
"from": "../../cocos2d-x/external/lua/luasocket",
"to": "",