24 lines
651 B
JavaScript
Raw Normal View History

require('adapter-js-path');
__globalAdapter.init();
// Ensure getting the system info in open data context
__globalAdapter.handleSystemInfo(() => {
require('cocos2d-js-path');
require('physics-js-path');
__globalAdapter.adaptEngine();
require('./ccRequire');
require('./src/settings');
// Introduce Cocos Service here
require('./main'); // TODO: move to common
// Adjust devicePixelRatio
cc.view._maxPixelRatio = 4;
if (cc.sys.platform !== cc.sys.BAIDU_GAME_SUB) {
// Release Image objects after uploaded gl texture
cc.macro.CLEANUP_IMAGE_CACHE = true;
}
window.boot();
});