VGA BIOS input (#1307)

This commit is contained in:
SuperMaxusa 2025-04-15 08:42:43 +03:00 committed by GitHub
parent ed0ed07a18
commit f97330d99e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 30 additions and 18 deletions

View file

@ -90,7 +90,7 @@
<tr>
<td><label for="floppy_image">Floppy disk image</label></td>
<td> <input type="file" id="floppy_image"><br></td>
<td><input type="file" id="floppy_image"><br></td>
</tr>
<tr>
@ -122,6 +122,11 @@
<td><input type="file" id="bios"><br></td>
</tr>
<tr>
<td><label for="vga_bios">VGA BIOS</label></td>
<td><input type="file" id="vga_bios"><br></td>
</tr>
<tr>
<td colspan="2"><small>Disk images are not uploaded to the server</small><hr></td>
</tr>

View file

@ -127,7 +127,7 @@
<tr>
<td><label for="floppy_image">Floppy disk image</label></td>
<td> <input type="file" id="floppy_image"><br></td>
<td><input type="file" id="floppy_image"><br></td>
</tr>
<tr>
@ -153,7 +153,12 @@
<tr>
<td><label for="bios">BIOS</label></td>
<td> <input type="file" id="bios"><br></td>
<td><input type="file" id="bios"><br></td>
</tr>
<tr>
<td><label for="vga_bios">VGA BIOS</label></td>
<td><input type="file" id="vga_bios"><br></td>
</tr>
<tr>

View file

@ -1852,6 +1852,11 @@ import { log_data } from "../log.js";
{
settings.bios = { buffer: bios };
}
const vga_bios = $("vga_bios").files[0];
if(vga_bios)
{
settings.vga_bios = { buffer: vga_bios };
}
const fda = $("floppy_image").files[0];
if(fda)
{
@ -1923,23 +1928,20 @@ import { log_data } from "../log.js";
if(settings.acpi) new_query_args.set("acpi", "1");
}
const BIOSPATH = "bios/";
if(!settings.bios)
{
const BIOSPATH = "bios/";
if(settings.use_bochs_bios)
{
var biosfile = "bochs-bios.bin";
var vgabiosfile = "bochs-vgabios.bin";
}
else
{
var biosfile = DEBUG ? "seabios-debug.bin" : "seabios.bin";
var vgabiosfile = DEBUG ? "vgabios-debug.bin" : "vgabios.bin";
}
settings.bios = { url: BIOSPATH + biosfile };
settings.vga_bios = { url: BIOSPATH + vgabiosfile };
settings.bios = { url: BIOSPATH + (DEBUG ? "seabios-debug.bin" : "seabios.bin") };
}
if(!settings.vga_bios)
{
settings.vga_bios = { url: BIOSPATH + (DEBUG ? "vgabios-debug.bin" : "vgabios.bin") };
}
if(settings.use_bochs_bios)
{
settings.bios = { url: BIOSPATH + "bochs-bios.bin" };
settings.vga_bios = { url: BIOSPATH + "bochs-vgabios.bin" };
}
}