From 77c18c0708a9b458e38e037d24ca0cebc5531315 Mon Sep 17 00:00:00 2001 From: OBattler Date: Tue, 13 Apr 2021 01:18:56 +0200 Subject: [PATCH] Improved the status bar's handling of hard disks and other storage devices on internal controllers. --- src/win/win_stbar.c | 58 ++++++++++++++++++++++++++------------------- 1 file changed, 33 insertions(+), 25 deletions(-) diff --git a/src/win/win_stbar.c b/src/win/win_stbar.c index 58566ab71..3ae3f0f5c 100644 --- a/src/win/win_stbar.c +++ b/src/win/win_stbar.c @@ -432,7 +432,8 @@ ui_sb_set_ready(int ready) void ui_sb_update_panes(void) { - int i, id, hdint; + int i, id; + int mfm_int, xta_int, esdi_int, ide_int, scsi_int; int edge = 0; int c_mfm, c_esdi, c_xta; int c_ide, c_scsi; @@ -446,7 +447,12 @@ ui_sb_update_panes(void) sb_ready = 0; } - hdint = (machines[machine].flags & MACHINE_HDC) ? 1 : 0; + mfm_int = (machines[machine].flags & MACHINE_MFM) ? 1 : 0; + xta_int = (machines[machine].flags & MACHINE_XTA) ? 1 : 0; + esdi_int = (machines[machine].flags & MACHINE_ESDI) ? 1 : 0; + ide_int = (machines[machine].flags & MACHINE_IDE_QUAD) ? 1 : 0; + scsi_int = (machines[machine].flags & MACHINE_SCSI_DUAL) ? 1 : 0; + c_mfm = hdd_count(HDD_BUS_MFM); c_esdi = hdd_count(HDD_BUS_ESDI); c_xta = hdd_count(HDD_BUS_XTA); @@ -487,11 +493,11 @@ ui_sb_update_panes(void) for (i=0; i