add bios input

This commit is contained in:
donno2048 2024-08-21 18:07:54 +00:00 committed by Fabian
parent 46366e2802
commit 23d279c26d
3 changed files with 28 additions and 2 deletions

View file

@ -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>

View file

@ -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>

View file

@ -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,