summaryrefslogtreecommitdiffstatshomepage
path: root/src/tools/imgtool/imghd.cpp
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2016-07-08 15:29:50 +1000
committer Vas Crabb <vas@vastheman.com>2016-07-08 15:29:50 +1000
commit6a67de94f99f02e342df83e9b5d7e8093a688942 (patch)
treed58fcfa459e1851bfdda205172d9590f1e1c85a6 /src/tools/imgtool/imghd.cpp
parentaaa3090dd3a40587f3d4cd7ab8016bcd96131e08 (diff)
Fix up imgtool as well
Diffstat (limited to 'src/tools/imgtool/imghd.cpp')
-rw-r--r--src/tools/imgtool/imghd.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/tools/imgtool/imghd.cpp b/src/tools/imgtool/imghd.cpp
index 715076b63b4..79a60a5d010 100644
--- a/src/tools/imgtool/imghd.cpp
+++ b/src/tools/imgtool/imghd.cpp
@@ -215,7 +215,7 @@ const hard_disk_info *imghd_get_header(struct mess_hard_disk_file *disk)
}
-static imgtoolerr_t mess_hd_image_create(imgtool_image *image, imgtool_stream *f, option_resolution *createoptions);
+static imgtoolerr_t mess_hd_image_create(imgtool_image *image, imgtool_stream *f, util::option_resolution *createoptions);
enum
{
@@ -254,16 +254,16 @@ void hd_get_info(const imgtool_class *imgclass, UINT32 state, union imgtoolinfo
-static imgtoolerr_t mess_hd_image_create(imgtool_image *image, imgtool_stream *f, option_resolution *createoptions)
+static imgtoolerr_t mess_hd_image_create(imgtool_image *image, imgtool_stream *f, util::option_resolution *createoptions)
{
UINT32 blocksize, cylinders, heads, sectors, seclen;
/* read options */
- blocksize = option_resolution_lookup_int(createoptions, mess_hd_createopts_blocksize);
- cylinders = option_resolution_lookup_int(createoptions, mess_hd_createopts_cylinders);
- heads = option_resolution_lookup_int(createoptions, mess_hd_createopts_heads);
- sectors = option_resolution_lookup_int(createoptions, mess_hd_createopts_sectors);
- seclen = option_resolution_lookup_int(createoptions, mess_hd_createopts_seclen);
+ blocksize = createoptions->lookup_int(mess_hd_createopts_blocksize);
+ cylinders = createoptions->lookup_int(mess_hd_createopts_cylinders);
+ heads = createoptions->lookup_int(mess_hd_createopts_heads);
+ sectors = createoptions->lookup_int(mess_hd_createopts_sectors);
+ seclen = createoptions->lookup_int(mess_hd_createopts_seclen);
return imghd_create(f, blocksize, cylinders, heads, sectors, seclen);
}