This commit is contained in:
libccy 2017-11-15 17:30:42 +08:00
parent 01b419079b
commit 23cda3af5a
1 changed files with 14 additions and 1 deletions

View File

@ -7753,6 +7753,12 @@
} }
ui.create.arena(); ui.create.arena();
game.createEvent('game',false).setContent(lib.init.start); game.createEvent('game',false).setContent(lib.init.start);
if(lib.mode[lib.config.mode]&&lib.mode[lib.config.mode].fromextension){
var startstr=mode[lib.config.mode].start.toString();
if(startstr.indexOf('onfree')==-1){
setTimeout(lib.init.onfree,500);
}
}
delete lib.init.start; delete lib.init.start;
game.loop(); game.loop();
} }
@ -25591,7 +25597,8 @@
lib.mode[name]={ lib.mode[name]={
name:info2.translate, name:info2.translate,
config:info2.config, config:info2.config,
splash:imgsrc splash:imgsrc,
fromextension:true
} }
lib.init['setMode_'+name]=function(){ lib.init['setMode_'+name]=function(){
game.import('mode',function(lib,game,ui,get,ai,_status){ game.import('mode',function(lib,game,ui,get,ai,_status){
@ -27383,6 +27390,12 @@
} }
game.createEvent('game',false).setContent(mode[lib.config.mode].start); game.createEvent('game',false).setContent(mode[lib.config.mode].start);
if(lib.mode[lib.config.mode]&&lib.mode[lib.config.mode].fromextension){
var startstr=mode[lib.config.mode].start.toString();
if(startstr.indexOf('onfree')==-1){
setTimeout(lib.init.onfree,500);
}
}
delete lib.imported.mode[name]; delete lib.imported.mode[name];
if(!lib.db){ if(!lib.db){