1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-06 01:28:57 +00:00

Updates the MFM parser to use SingleTrackDisk rather than the equivalent withdrawn Drive functionality.

This commit is contained in:
Thomas Harte 2017-09-10 17:34:52 -04:00
parent 1a96cce26f
commit 523e1288fa

View File

@ -9,6 +9,7 @@
#include "MFM.hpp"
#include "../PCMTrack.hpp"
#include "../SingleTrackDisk.hpp"
#include "../../../NumberTheory/CRC.hpp"
#include <set>
@ -255,7 +256,7 @@ Parser::Parser(bool is_mfm, const std::shared_ptr<Storage::Disk::Disk> &disk) :
Parser::Parser(bool is_mfm, const std::shared_ptr<Storage::Disk::Track> &track) :
Parser(is_mfm) {
drive_->set_disk_with_track(track);
drive_->set_disk(std::make_shared<Disk::SingleTrackDisk>(track));
}
void Parser::seek_to_track(uint8_t track) {