Set the initial status of removable devices to BX_EJECTED (fixes headerbar buttons)

This commit is contained in:
Volker Ruppert 2013-06-09 10:27:43 +00:00
parent 38e292a261
commit c0d3cdb5c5
2 changed files with 3 additions and 3 deletions

View File

@ -1154,7 +1154,7 @@ void bx_init_options()
"Status",
"Floppy media status (inserted / ejected)",
media_status_names,
BX_INSERTED,
BX_EJECTED,
BX_EJECTED);
status->set_ask_format("Is the device inserted or ejected? [%s] ");
@ -1301,7 +1301,7 @@ void bx_init_options()
"Status",
"CD-ROM media status (inserted / ejected)",
media_status_names,
BX_INSERTED,
BX_EJECTED,
BX_EJECTED);
status->set_ask_format("Is the device inserted or ejected? [%s] ");

View File

@ -182,7 +182,7 @@ usb_msd_device_c::usb_msd_device_c(usbdev_type type, const char *filename)
"Status",
"CD-ROM media status (inserted / ejected)",
media_status_names,
BX_INSERTED,
BX_EJECTED,
BX_EJECTED);
status->set_handler(cd_param_handler);
status->set_runtime_param(1);