mirror of https://github.com/axmolengine/axmol.git
commit
a300194d8f
|
@ -26,15 +26,14 @@ bool AppDelegate::applicationDidFinishLaunching()
|
||||||
initRuntime();
|
initRuntime();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// initialize director
|
|
||||||
auto director = Director::getInstance();
|
|
||||||
auto glview = director->getOpenGLView();
|
|
||||||
if(!glview) {
|
|
||||||
|
|
||||||
if (!ConfigParser::getInstance()->isInit()) {
|
if (!ConfigParser::getInstance()->isInit()) {
|
||||||
ConfigParser::getInstance()->readConfig();
|
ConfigParser::getInstance()->readConfig();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// initialize director
|
||||||
|
auto director = Director::getInstance();
|
||||||
|
auto glview = director->getOpenGLView();
|
||||||
|
if(!glview) {
|
||||||
Size viewSize = ConfigParser::getInstance()->getInitViewSize();
|
Size viewSize = ConfigParser::getInstance()->getInitViewSize();
|
||||||
string title = ConfigParser::getInstance()->getInitViewName();
|
string title = ConfigParser::getInstance()->getInitViewName();
|
||||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32 || CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
|
#if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32 || CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
|
||||||
|
|
|
@ -26,6 +26,13 @@
|
||||||
"from": "../../cocos2d-x/cocos/scripting/lua-bindings/script",
|
"from": "../../cocos2d-x/cocos/scripting/lua-bindings/script",
|
||||||
"to": ""
|
"to": ""
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"from": "../../../res",
|
||||||
|
"to": "res",
|
||||||
|
"include": [
|
||||||
|
"config.json"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"from": "../../cocos2d-x/external/lua/luasocket",
|
"from": "../../cocos2d-x/external/lua/luasocket",
|
||||||
"to": "",
|
"to": "",
|
||||||
|
|
Loading…
Reference in New Issue