chukong / quick-cocos2d-x

quick-cocos2d-x is a quick framework, based on cocos2d-x. Make mobile games in Lua.
http://quick-x.com/
1.48k stars 868 forks source link

2.2.6在android上AssetsManager是nil #514

Closed goodlxs880 closed 9 years ago

goodlxs880 commented 9 years ago

2.2.6在android上AssetsManager是nil,CC_CURL_ENABLED := 1 APP_CPPFLAGS += -DCC_CURL_ENABLED=1 这两个都打开着

goodlxs880 commented 9 years ago
// load assets manager

if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)

luaopen_cocos2dx_httprequest_luabinding(m_state);

else

#if CC_CURL_ENABLED > 0
    luaopen_ExtensionsAssetsManager(m_state);
    luaopen_cocos2dx_httprequest_luabinding(m_state);
#endif

endif

为什么android上不 加luaopen_ExtensionsAssetsManager(m_state);