Preparing Bochs code for accepting USB boot option PR.

The current code would panic if booting from network is selected.
Added two empty items for PCMCIA and USB as a workaround.
FIXME 1: The config interfaces win32paramdialog and wxdialog now showing
         two empty lines in combo box.
FIXME 2: The Bochs BIOS can only boot from network if selected in boot menu
         (press F12).
This commit is contained in:
Volker Ruppert 2024-10-24 16:48:43 +02:00
parent 7373c19c78
commit 15badf06c4
2 changed files with 3 additions and 1 deletions

View File

@ -572,7 +572,7 @@ const char *floppy_devtype_names[] = { "none", "5.25\" 360K", "5.25\" 1.2M", "3.
const char *floppy_type_names[] = { "none", "1.2M", "1.44M", "2.88M", "720K", "360K", "160K", "180K", "320K", "auto", NULL };
int floppy_type_n_sectors[] = { -1, 80*2*15, 80*2*18, 80*2*36, 80*2*9, 40*2*9, 40*1*8, 40*1*9, 40*2*8, -1 };
const char *media_status_names[] = { "ejected", "inserted", NULL };
const char *bochs_bootdisk_names[] = { "none", "floppy", "disk","cdrom", "network", NULL };
const char *bochs_bootdisk_names[] = { "none", "floppy", "disk", "cdrom", "", "", "network", NULL };
void bx_real_sim_c::set_notify_callback(bxevent_handler func, void *arg)
{

View File

@ -142,6 +142,8 @@ enum {
BX_BOOT_FLOPPYA,
BX_BOOT_DISKC,
BX_BOOT_CDROM,
BX_BOOT_PCMCIA,
BX_BOOT_USB,
BX_BOOT_NETWORK
};