diff options
| author | 2025-10-15 10:42:57 -0400 | |
|---|---|---|
| committer | 2025-10-15 10:42:57 -0400 | |
| commit | ea71cb678b752ff1a215a57df64fab972811db01 (patch) | |
| tree | 91aacb3f367acd4b6be38b65623864bc62bda97f /src/lib | |
| parent | 5e4404552002aa49ffb94c5077f33d7e0725c173 (diff) | |
adam_fdc: Enable 320KB format (with appropriate BIOS and drive option); add floppy sounds
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/formats/adam_dsk.cpp | 5 | ||||
| -rw-r--r-- | src/lib/formats/adam_dsk.h | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/formats/adam_dsk.cpp b/src/lib/formats/adam_dsk.cpp index 04848acd07c..0f8dd81556c 100644 --- a/src/lib/formats/adam_dsk.cpp +++ b/src/lib/formats/adam_dsk.cpp @@ -65,4 +65,9 @@ const adam_format::format adam_format::formats[] = { {} }; +int adam_format::get_image_offset(const format &f, int head, int track) const +{ + return (track + (head ? f.track_count : 0)) * compute_track_size(f); +} + const adam_format FLOPPY_ADAM_FORMAT; diff --git a/src/lib/formats/adam_dsk.h b/src/lib/formats/adam_dsk.h index 98aaf24216f..36982ac02bd 100644 --- a/src/lib/formats/adam_dsk.h +++ b/src/lib/formats/adam_dsk.h @@ -23,6 +23,8 @@ public: virtual const char *description() const noexcept override; virtual const char *extensions() const noexcept override; + virtual int get_image_offset(const format &f, int head, int track) const override; + private: static const format formats[]; }; |
