From 1633423cc58b37349da5adef17c10ae1f157c7b0 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Sat, 14 Oct 2017 20:42:34 +0300 Subject: [PATCH] B1 bridgeboard 40 track fix. --- disk.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/disk.cpp b/disk.cpp index f4886f19..5632b7b1 100644 --- a/disk.cpp +++ b/disk.cpp @@ -1279,8 +1279,10 @@ static int drive_insert (drive * drv, struct uae_prefs *p, int dnum, const TCHAR drv->ddhd = 1; sd = 0; + bool can40 = p->floppyslots[dnum].dfxtype == DRV_525_DD || p->floppyslots[dnum].dfxtype == DRV_PC_ONLY_40; + for (side = 2; side > 0; side--) { - if (drv->hard_num_cyls >= 80 && p->floppyslots[dnum].dfxtype != DRV_525_DD) { + if (drv->hard_num_cyls >= 80 && !can40) { if ( size == 9 * 80 * side * 512 || size == 9 * 81 * side * 512 || size == 9 * 82 * side * 512) { drv->num_secs = 9; drv->ddhd = 1; @@ -1307,7 +1309,7 @@ static int drive_insert (drive * drv, struct uae_prefs *p, int dnum, const TCHAR break; } } - if (drv->hard_num_cyls == 40 || p->floppyslots[dnum].dfxtype == DRV_525_DD) { + if (drv->hard_num_cyls == 40 || can40) { if (size == 9 * 40 * side * 512) { drv->num_secs = 9; drv->ddhd = 1; -- 2.47.3