summaryrefslogtreecommitdiffstatshomepage
path: root/src/tools/imgtool/modules/pc_flop.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/imgtool/modules/pc_flop.cpp')
-rw-r--r--src/tools/imgtool/modules/pc_flop.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/imgtool/modules/pc_flop.cpp b/src/tools/imgtool/modules/pc_flop.cpp
index 8ee5ae8a8ec..ea2a8f8abe0 100644
--- a/src/tools/imgtool/modules/pc_flop.cpp
+++ b/src/tools/imgtool/modules/pc_flop.cpp
@@ -10,7 +10,7 @@
#include "imgtool.h"
#include "formats/imageutl.h"
-#include "formats/pc_dsk.h"
+#include "formats/pc_dsk_legacy.h"
#include "fat.h"
#include "iflopimg.h"
@@ -163,7 +163,7 @@ void pc_floppy_get_info(const imgtool_class *imgclass, uint32_t state, union img
/* --- the following bits of info are returned as pointers to data or functions --- */
case IMGTOOLINFO_PTR_MAKE_CLASS: info->make_class = imgtool_floppy_make_class; break;
case IMGTOOLINFO_PTR_FLOPPY_CREATE: info->create = fat_image_create; break;
- case IMGTOOLINFO_PTR_FLOPPY_FORMAT: info->p = nullptr; break;
+ case IMGTOOLINFO_PTR_FLOPPY_FORMAT: info->p = (void *) floppyoptions_pc; break;
case IMGTOOLINFO_PTR_READ_BLOCK: info->read_block = fat_image_readblock; break;
case IMGTOOLINFO_PTR_WRITE_BLOCK: info->write_block = fat_image_writeblock; break;
case IMGTOOLINFO_PTR_GET_GEOMETRY: info->get_geometry = fat_image_get_geometry; break;