MiaoScript/src/main/resources/bios.js
502647092 9556008bee feat: 缓存编译结果 使用load载入脚本
Signed-off-by: 502647092 <admin@yumc.pw>
2017-09-23 18:30:14 +08:00

24 lines
576 B
JavaScript

'use strict';
var boot;
var disable;
/**
* 初始化框架引擎
*/
(function () {
boot = function (plugin) {
// 开发环境下初始化
var root = "src/main/resources";
if (plugin !== null) {
// noinspection JSUnresolvedVariable
root = plugin.dataFolder.canonicalPath;
}
load(root + '/core/init.js');
try {
init(root, plugin);
} catch (ex) {
log.w("MiaoScript 初始化失败! %s", ex);
throw ex;
}
disable = disablePlugins
};
})();