From 523e1288fa8815a40fd1e6f961f366e527cf0291 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sun, 10 Sep 2017 17:34:52 -0400 Subject: [PATCH] Updates the MFM parser to use SingleTrackDisk rather than the equivalent withdrawn Drive functionality. --- Storage/Disk/Encodings/MFM.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Storage/Disk/Encodings/MFM.cpp b/Storage/Disk/Encodings/MFM.cpp index 063bdfb44..d9544f3b5 100644 --- a/Storage/Disk/Encodings/MFM.cpp +++ b/Storage/Disk/Encodings/MFM.cpp @@ -9,6 +9,7 @@ #include "MFM.hpp" #include "../PCMTrack.hpp" +#include "../SingleTrackDisk.hpp" #include "../../../NumberTheory/CRC.hpp" #include @@ -255,7 +256,7 @@ Parser::Parser(bool is_mfm, const std::shared_ptr &disk) : Parser::Parser(bool is_mfm, const std::shared_ptr &track) : Parser(is_mfm) { - drive_->set_disk_with_track(track); + drive_->set_disk(std::make_shared(track)); } void Parser::seek_to_track(uint8_t track) {