summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/formats/td0_dsk.cpp
diff options
context:
space:
mode:
author Stefano <stefano_bodrato@hotmail.com>2018-03-27 01:20:08 +0200
committer Vas Crabb <cuavas@users.noreply.github.com>2018-03-27 10:20:08 +1100
commitc959d88ec524125f73d61510d4843c769da50c02 (patch)
tree8de131acdcc5e70e43fbb44e031b349dea09fae9 /src/lib/formats/td0_dsk.cpp
parent9a154947d1cb61180eb00bffa919e7921c2d5234 (diff)
Minimal improvements on the disk handling (#3395)
* Keeping the 35 tracks drive as an option * Reducing the crashes a bit more. This helps matching the form_factor and the parameters found in the TeleDisk images, thus exiting before a serious crash. It is NOT enough to improve the 8" disk image handling, nor it solves all the stability problems, but it is a tiny step forwards.
Diffstat (limited to 'src/lib/formats/td0_dsk.cpp')
-rw-r--r--src/lib/formats/td0_dsk.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/formats/td0_dsk.cpp b/src/lib/formats/td0_dsk.cpp
index f31150eb45d..71d6395a70a 100644
--- a/src/lib/formats/td0_dsk.cpp
+++ b/src/lib/formats/td0_dsk.cpp
@@ -909,6 +909,10 @@ bool td0_format::load(io_generic *io, uint32_t form_factor, floppy_image *image)
return false; // single side 3.5?
}
break;
+ case 5:
+ if (form_factor != floppy_image::FF_8)
+ return false; // 8" drive form factor is expected
+ break;
}
static const int rates[3] = { 250000, 300000, 500000 };