From e50bbce21d51d0cde8557410eb4a1d66267918cc Mon Sep 17 00:00:00 2001 From: OBattler Date: Fri, 1 Aug 2025 00:18:43 +0200 Subject: [PATCH] HDD: Replace one fatal with sane default behavior, replaces some IDE BIOS'es fatal'ing the emulator with too old IDE hard disk models selected. --- src/disk/hdd.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/disk/hdd.c b/src/disk/hdd.c index ddab10c97..e48af6b20 100644 --- a/src/disk/hdd.c +++ b/src/disk/hdd.c @@ -160,8 +160,12 @@ hdd_seek_get_time(hard_disk_t *hdd, uint32_t dst_addr, uint8_t operation, uint8_ const hdd_zone_t *zone = NULL; if (hdd->num_zones <= 0) { +#ifdef DO_FATAL fatal("hdd_seek_get_time(): hdd->num_zones < 0)\n"); return 0.0; +#else + return 1000.0; +#endif } for (uint32_t i = 0; i < hdd->num_zones; i++) { zone = &hdd->zones[i];