summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/formats/flopimg.cpp
diff options
context:
space:
mode:
author Olivier Galibert <galibert@pobox.com>2021-01-09 21:41:19 +0100
committer Olivier Galibert <galibert@pobox.com>2021-01-09 21:42:29 +0100
commit23af0ace46f4ac4c1b916f5dcba5ee82b7eff361 (patch)
tree9e152ea70cb0f60315ffb4d9b5a8c38ee0b58d06 /src/lib/formats/flopimg.cpp
parent31390d3f3e1fd4ad4631115b1f1a2c68f419179d (diff)
Provide the variants to the floppy formats
Diffstat (limited to 'src/lib/formats/flopimg.cpp')
-rw-r--r--src/lib/formats/flopimg.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/lib/formats/flopimg.cpp b/src/lib/formats/flopimg.cpp
index 3f57ae9b19b..d6bd264906d 100644
--- a/src/lib/formats/flopimg.cpp
+++ b/src/lib/formats/flopimg.cpp
@@ -969,6 +969,14 @@ const char *floppy_image::get_variant_name(uint32_t form_factor, uint32_t varian
return "Unknown";
}
+bool floppy_image_format_t::has_variant(const std::vector<uint32_t> &variants, uint32_t variant)
+{
+ for(uint32_t v : variants)
+ if(variant == v)
+ return true;
+ return false;
+}
+
floppy_image_format_t::floppy_image_format_t()
{
next = nullptr;
@@ -986,7 +994,7 @@ void floppy_image_format_t::append(floppy_image_format_t *_next)
next = _next;
}
-bool floppy_image_format_t::save(io_generic *, floppy_image *)
+bool floppy_image_format_t::save(io_generic *, const std::vector<uint32_t> &, floppy_image *)
{
return false;
}