summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/formats/ds9_dsk.cpp
diff options
context:
space:
mode:
author Olivier Galibert <galibert@pobox.com>2022-03-25 15:02:54 +0100
committer Olivier Galibert <galibert@pobox.com>2022-03-30 15:45:35 +0200
commit33bdc1469b3bc84ab1b811329f05c75f4801a7de (patch)
tree354dd6678a442adc26be3572fac9b27e1d21d1d4 /src/lib/formats/ds9_dsk.cpp
parent023486a37ff70f9be765495c07ff3fe0b9c47bc1 (diff)
Constify the floppy image handling interface
Diffstat (limited to 'src/lib/formats/ds9_dsk.cpp')
-rw-r--r--src/lib/formats/ds9_dsk.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/formats/ds9_dsk.cpp b/src/lib/formats/ds9_dsk.cpp
index deab3d2539b..aa7d150ffb8 100644
--- a/src/lib/formats/ds9_dsk.cpp
+++ b/src/lib/formats/ds9_dsk.cpp
@@ -78,7 +78,7 @@ void ds9_format::find_size(util::random_read &io, uint8_t &track_count, uint8_t
track_count = head_count = sector_count = 0;
}
-int ds9_format::identify(util::random_read &io, uint32_t form_factor, const std::vector<uint32_t> &variants)
+int ds9_format::identify(util::random_read &io, uint32_t form_factor, const std::vector<uint32_t> &variants) const
{
uint8_t track_count, head_count, sector_count;
find_size(io, track_count, head_count, sector_count);
@@ -89,7 +89,7 @@ int ds9_format::identify(util::random_read &io, uint32_t form_factor, const std:
return 0;
}
-bool ds9_format::load(util::random_read &io, uint32_t form_factor, const std::vector<uint32_t> &variants, floppy_image *image)
+bool ds9_format::load(util::random_read &io, uint32_t form_factor, const std::vector<uint32_t> &variants, floppy_image *image) const
{
uint8_t track_count, head_count, sector_count;
find_size(io, track_count, head_count, sector_count);