[2023/09/14: Inchar] turn `game.importExtension` to async.
This commit is contained in:
parent
9870c39857
commit
0eec9bcb51
|
@ -33692,7 +33692,7 @@
|
||||||
})();
|
})();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
importExtension:function(data,finishLoad,exportext,pkg){
|
importExtension:gnc.async(function*(data,finishLoad,exportext,pkg){
|
||||||
//by 来瓶可乐加冰
|
//by 来瓶可乐加冰
|
||||||
if(!window.JSZip){
|
if(!window.JSZip){
|
||||||
lib.init.js(lib.assetURL+'game','jszip',function(){
|
lib.init.js(lib.assetURL+'game','jszip',function(){
|
||||||
|
@ -33941,7 +33941,7 @@
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
},
|
}),
|
||||||
export:function(textToWrite,name){
|
export:function(textToWrite,name){
|
||||||
var textFileAsBlob = new Blob([textToWrite], {type:'text/plain'});
|
var textFileAsBlob = new Blob([textToWrite], {type:'text/plain'});
|
||||||
var fileNameToSaveAs = name||'noname';
|
var fileNameToSaveAs = name||'noname';
|
||||||
|
|
Loading…
Reference in New Issue