mirror of
https://github.com/smallmain/cocos-enhance-kit.git
synced 2024-12-26 11:48:29 +00:00
20 lines
570 B
JavaScript
20 lines
570 B
JavaScript
const _global = GameGlobal;
|
|
const adapter = _global.__globalAdapter = {};
|
|
|
|
Object.assign(adapter, {
|
|
init () {
|
|
require('./wrapper/builtin');
|
|
_global.DOMParser = require('../../common/xmldom/dom-parser').DOMParser;
|
|
require('./wrapper/unify');
|
|
require('./wrapper/fs-utils');
|
|
require('../../common/engine/globalAdapter');
|
|
require('./wrapper/systemInfo');
|
|
},
|
|
|
|
adaptEngine () {
|
|
require('../../common/engine');
|
|
require('./wrapper/engine');
|
|
require('./wrapper/sub-context-adapter');
|
|
},
|
|
});
|