mirror of
https://github.com/copy/v86.git
synced 2025-12-31 04:23:15 +00:00
add bios input
This commit is contained in:
parent
46366e2802
commit
23d279c26d
3 changed files with 28 additions and 2 deletions
|
|
@ -136,6 +136,11 @@ function load_next()
|
|||
<hr>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td><label for="bios">BIOS</label></td>
|
||||
<td><input type="file" id="bios"><br></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td width="350"><label for="cd_image">CD image</label></td>
|
||||
<td>
|
||||
|
|
|
|||
|
|
@ -69,6 +69,11 @@
|
|||
<hr>
|
||||
<h4>Setup</h4>
|
||||
<table>
|
||||
<tr>
|
||||
<td><label for="bios">BIOS</label></td>
|
||||
<td> <input type="file" id="bios"><br></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td width="350"><label for="cd_image">CD image</label></td>
|
||||
<td>
|
||||
|
|
|
|||
|
|
@ -144,6 +144,13 @@
|
|||
var images = [];
|
||||
var last_file;
|
||||
|
||||
var bios = $("bios").files[0];
|
||||
if(bios)
|
||||
{
|
||||
last_file = bios;
|
||||
settings.bios = { buffer: bios };
|
||||
}
|
||||
|
||||
var floppy_file = $("floppy_image").files[0];
|
||||
if(floppy_file)
|
||||
{
|
||||
|
|
@ -1525,6 +1532,15 @@
|
|||
}
|
||||
}
|
||||
|
||||
if(!settings.bios)
|
||||
{
|
||||
var bios = $("bios").files[0];
|
||||
if(bios)
|
||||
{
|
||||
settings.bios = { buffer: bios };
|
||||
}
|
||||
}
|
||||
|
||||
if(!settings.fda)
|
||||
{
|
||||
var floppy_file = $("floppy_image").files[0];
|
||||
|
|
@ -1594,8 +1610,8 @@
|
|||
|
||||
network_relay_url: ON_LOCALHOST ? "ws://localhost:8080/" : networking_proxy,
|
||||
|
||||
bios: bios,
|
||||
vga_bios: vga_bios,
|
||||
bios: settings.bios || bios,
|
||||
vga_bios: settings.bios ? null : vga_bios,
|
||||
|
||||
fda: settings.fda,
|
||||
hda: settings.hda,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue