代码拉取完成,页面将自动刷新
source by www.emulatorjs.com version 0.4.70
2020/04/03
old
#How to use
<script src="assets/js/NengeDBFS.js"></script>
<app-emujs system='gb' language="zh" gameUrl='rooms/宝可梦 - 比卡超.7z' style="width: 100%;height:100vh !important;"></app-emujs>
or
<script src="assets/js/NengeDBFS.js"></script>
<div style="width: 100%;height:100%;position:absolute;left: 0px;top: 0px;right:0px;z-index: 11;" id="game" ></div>
<script>NengeDBFS.READY(
'#game',
{
gameurl:'rooms/宝可梦 - 比卡超.7z',
system:'gb',
language:'zh'
/*
Other parameter reference see http://www.emulatorjs.com/nes.html
*/
});
//when document ready full option
new EJS(
'#game',
{
gameurl:'rooms/宝可梦 - 比卡超.7z', //required
system:'gb', //required
//optional
_system:true, // using old system cores
language:'zh', // see NengeDBFS under
gameId:'', //set Unique ID on Netplay
biosurl:'', //set bios
cheats:'',//set check code like 'aabbccdd xx\naabbccdd xx\n'
gameparenturl:'',
gamepatchurl:'', //add ips .. game patch
SaveState:async function (state,img){
//this = ejs
//state u8
//img u8
//game FileName this.fileName
//when user save
},
SaveSRM:async function (srm){
//srm/dsv is save u8
//this = ejs
//when user save
},
LoadState:async function (olddata){
///olddata = {contents:u8,timestamp:Date}
// web user load game will check or down
//this = ejs
let FileTime = olddata&&olddata.timestamp.valueOf();
return await this.DBFS.FectchItem(
url:'your server host?gamename='+this.systemt+'-'+this.fileName+'&time='+ FileTime,
upack:true //if this is zip
);
},
LoadSRM:async function (olddata){
///olddata = {contents:u8,timestamp:Date}
// web user load game will check or down
//this = ejs
let FileTime = olddata&&olddata.timestamp.valueOf();
//if(FileTime>xxx) return ;
return await this.DBFS.FectchItem(
url:'your server host?gamename='+this.systemt+'-'+this.fileName+'&time='+ FileTime,
upack:true //if this is zip
);
}
}
);
<script>
self.LANGUAGE = {
'zh': {...}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。