open source

This commit is contained in:
lvfulong
2020-11-11 16:17:13 +08:00
parent 4d989f3ecb
commit bc4ca748de
2441 changed files with 623057 additions and 2 deletions
+24
View File
@@ -0,0 +1,24 @@
(function () {
'use strict';
var gl = LayaGLContext;
window["extendWebGLPlusToWebGLContext"](gl);
class AppInfo {
name: string;
version: string;
devUpdateUrl: string;
updateUrl: string;
updateDelay: number;//更新延迟
DomJS: string;
mainjs: string;
};
var appobj:AppInfo = null;
try {
appobj = <AppInfo>JSON.parse(<string>conch.readFileFromAsset('app.json', 'utf8'));
if(appobj){
require(appobj.mainjs);
}
} catch (e) {
require('index');
}
})();