mirror of
https://github.com/TomHarte/CLK.git
synced 2025-08-13 00:25:26 +00:00
Updates the MFM parser to use SingleTrackDisk rather than the equivalent withdrawn Drive functionality.
This commit is contained in:
@@ -9,6 +9,7 @@
|
|||||||
#include "MFM.hpp"
|
#include "MFM.hpp"
|
||||||
|
|
||||||
#include "../PCMTrack.hpp"
|
#include "../PCMTrack.hpp"
|
||||||
|
#include "../SingleTrackDisk.hpp"
|
||||||
#include "../../../NumberTheory/CRC.hpp"
|
#include "../../../NumberTheory/CRC.hpp"
|
||||||
|
|
||||||
#include <set>
|
#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::Parser(bool is_mfm, const std::shared_ptr<Storage::Disk::Track> &track) :
|
||||||
Parser(is_mfm) {
|
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) {
|
void Parser::seek_to_track(uint8_t track) {
|
||||||
|
Reference in New Issue
Block a user