mirror of https://github.com/axmolengine/axmol.git
do not load deprecated Lua API from luabinding of modules
This commit is contained in:
parent
0a2e60a5ad
commit
68f71b3df4
|
@ -57,9 +57,6 @@ bool LuaEngine::init(void)
|
|||
{
|
||||
_stack = LuaStack::create();
|
||||
_stack->retain();
|
||||
executeScriptFile("DeprecatedCocos2dClass");
|
||||
executeScriptFile("DeprecatedCocos2dEnum");
|
||||
executeScriptFile("DeprecatedCocos2dFunc");
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -465,7 +465,5 @@ int register_cocosbuilder_module(lua_State* tolua_S)
|
|||
register_all_cocos2dx_cocosbuilder_manual(tolua_S);
|
||||
}
|
||||
lua_pop(tolua_S, 1);
|
||||
|
||||
LuaEngine::getInstance()->executeScriptFile("DeprecatedCocosBuilderClass");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -33,8 +33,5 @@ int register_cocosdenshion_module(lua_State* L)
|
|||
register_all_cocos2dx_cocosdenshion(L);
|
||||
}
|
||||
lua_pop(L, 1);
|
||||
|
||||
cocos2d::LuaEngine::getInstance()->executeScriptFile("DeprecatedCocosDenshionClass");
|
||||
cocos2d::LuaEngine::getInstance()->executeScriptFile("DeprecatedCocosDenshionFunc");
|
||||
return 1;
|
||||
}
|
|
@ -647,8 +647,5 @@ int register_cocostudio_module(lua_State* L)
|
|||
lua_register_cocos2dx_coco_studio_CustomGUIReader(L);
|
||||
}
|
||||
lua_pop(L, 1);
|
||||
|
||||
LuaEngine::getInstance()->executeScriptFile("DeprecatedCocoStudioClass");
|
||||
LuaEngine::getInstance()->executeScriptFile("DeprecatedCocoStudioFunc");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -957,9 +957,5 @@ int register_extension_module(lua_State* tolua_S)
|
|||
register_all_cocos2dx_extension_manual(tolua_S);
|
||||
}
|
||||
lua_pop(tolua_S, 1);
|
||||
|
||||
LuaEngine::getInstance()->executeScriptFile("DeprecatedExtensionClass");
|
||||
LuaEngine::getInstance()->executeScriptFile("DeprecatedExtensionEnum");
|
||||
LuaEngine::getInstance()->executeScriptFile("DeprecatedExtensionFunc");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -53,9 +53,5 @@ int register_network_module(lua_State* L)
|
|||
}
|
||||
lua_pop(L, 1);
|
||||
|
||||
cocos2d::LuaEngine::getInstance()->executeScriptFile("DeprecatedNetworkClass");
|
||||
cocos2d::LuaEngine::getInstance()->executeScriptFile("DeprecatedNetworkEnum");
|
||||
cocos2d::LuaEngine::getInstance()->executeScriptFile("DeprecatedNetworkFunc");
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -808,7 +808,5 @@ int register_ui_moudle(lua_State* L)
|
|||
}
|
||||
lua_pop(L, 1);
|
||||
|
||||
LuaEngine::getInstance()->executeScriptFile("DeprecatedUIEnum");
|
||||
LuaEngine::getInstance()->executeScriptFile("DeprecatedUIFunc");
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue