added v86 state

This commit is contained in:
Eugene Pankov
2021-02-08 11:14:29 +01:00
parent bbe6ad2cbc
commit f6834d189f
7 changed files with 9 additions and 13 deletions

9
dist/terminal.js vendored
View File

@@ -132030,10 +132030,13 @@ function start() {
vga_bios: {
url: '../data/vgabios.bin',
},
wasm_path: '../data/v86.wasm',
cdrom: {
url: '../data/linux.iso',
},
wasm_path: '../data/v86.wasm',
initial_state: {
url: '../data/v86state.bin'
},
autostart: true,
disable_keyboard: true,
});
@@ -132041,9 +132044,6 @@ function start() {
this.emit('data', '\r\nVM ready, booting\r\n');
setTimeout(() => {
this.emit('data', '[Yes, this is a real demo]\r\n');
this.loadingInterval = setInterval(() => {
this.emit('data', '.');
}, 500);
}, 2000);
});
NodePTY.vm.add_listener('download-progress', (e) => {
@@ -132051,7 +132051,6 @@ function start() {
});
NodePTY.vm.add_listener('download-error', (e) => {
this.emit('data', '\r\nDownload error\r\n');
clearInterval(this.loadingInterval);
});
}
else {

File diff suppressed because one or more lines are too long