memset (&gui_data, 0, sizeof gui_data);
gui_data.cd = -1;
gui_data.hd = -1;
- gui_data.md = -1;
+ gui_data.md = (currprefs.cs_cd32nvram || currprefs.cs_cdtvram) ? 0 : -1;
logging_init (); /* Yes, we call this twice - the first case handles when the user has loaded
a config using the cmd-line. This case handles loads through the GUI. */
gui_flicker_led (i, -1, -1);
gui_led (LED_POWER, gui_data.powerled);
gui_fps (0, 0, 0);
+ if (gui_data.md >= 0)
+ gui_led (LED_MD, 0);
for (i = 0; i < 4; i++) {
if (currprefs.floppyslots[i].dfxtype >= 0)
gui_led (LED_DF0 + i, 0);
if (f_text >= 0)
ew (hDlg, f_text, state);
if (f_eject >= 0)
- ew (hDlg, f_eject, workprefs.floppyslots[n].df[0] != 0);
+ ew (hDlg, f_eject, text[0] != 0);
if (f_drive >= 0)
ew (hDlg, f_drive, state);
if (f_enable >= 0) {
if (f_wp >= 0)
CheckDlgButton (hDlg, f_wp, chk);
if (f_info >= 0)
- ew (hDlg, f_info, workprefs.floppyslots[n].df[0] != 0);
+ ew (hDlg, f_info, text[0] != 0);
chk = !showcd && state && DISK_validate_filename (&workprefs, text, 0, NULL, NULL, NULL) ? TRUE : FALSE;
if (f_wp >= 0) {
ew (hDlg, f_wp, chk && !workprefs.floppy_read_only);
if (led < 0) {
gui_flicker_led2 (LED_HD, 0, 0);
gui_flicker_led2 (LED_CD, 0, 0);
- gui_flicker_led2 (LED_MD, 0, 0);
+ if (gui_data.md >= 0)
+ gui_flicker_led2 (LED_MD, 0, 0);
} else {
gui_flicker_led2 (led, unitnum, status);
}