summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/ieee488/hp9895.cpp
diff options
context:
space:
mode:
author Olivier Galibert <galibert@pobox.com>2021-03-02 15:29:33 +0100
committer Olivier Galibert <galibert@pobox.com>2021-03-02 15:30:45 +0100
commit3c9e3749541b1da8a0c5409c582070aae66dd3d6 (patch)
tree7fafe993b6679ef13fb48ed7d5e18f47a8226928 /src/devices/bus/ieee488/hp9895.cpp
parentdd75841b96ec3a16e937ae970a986b87cc9c9ee2 (diff)
floppies: Turn the format arrays into function calls. Create a default "mfm", "fm" and "pc" list of formats. Their contents, and which driver uses what, may need some tuning.
Diffstat (limited to 'src/devices/bus/ieee488/hp9895.cpp')
-rw-r--r--src/devices/bus/ieee488/hp9895.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/devices/bus/ieee488/hp9895.cpp b/src/devices/bus/ieee488/hp9895.cpp
index e7338e211b7..ee23db8c6cb 100644
--- a/src/devices/bus/ieee488/hp9895.cpp
+++ b/src/devices/bus/ieee488/hp9895.cpp
@@ -874,10 +874,9 @@ static void hp9895_floppies(device_slot_interface &device)
device.option_add("8dsdd" , FLOPPY_8_DSDD);
}
-static const floppy_format_type hp9895_floppy_formats[] = {
- FLOPPY_MFI_FORMAT,
- FLOPPY_HPI_FORMAT,
- nullptr
+static void hp9895_floppy_formats(format_registration &fr)
+{
+ fr.add(FLOPPY_HPI_FORMAT);
};
const tiny_rom_entry *hp9895_device::device_rom_region() const