bumped v86

This commit is contained in:
Eugene Pankov 2021-02-08 10:25:24 +01:00
parent 5e12597ad8
commit bbe6ad2cbc
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4
5 changed files with 844 additions and 599 deletions

BIN
data/v86.wasm Normal file

Binary file not shown.

File diff suppressed because it is too large Load Diff

5
dist/terminal.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -31,6 +31,7 @@ async function start () {
cdrom: {
url: '../data/linux.iso',
},
wasm_path: '../data/v86.wasm',
autostart: true,
disable_keyboard: true,
})
@ -44,7 +45,7 @@ async function start () {
}, 2000)
})
NodePTY.vm.add_listener('download-progress', (e) => {
this.emit('data', `\rDownloading ${e.Rg}: ${e.loaded / 1024}/${e.total / 1024} kB `)
this.emit('data', `\rDownloading ${e.file_name}: ${e.loaded / 1024}/${e.total / 1024} kB `)
})
NodePTY.vm.add_listener('download-error', (e) => {
this.emit('data', '\r\nDownload error\r\n')