mirror of
https://github.com/TomHarte/CLK.git
synced 2024-07-26 11:29:09 +00:00
Updates the MFM parser to use SingleTrackDisk rather than the equivalent withdrawn Drive functionality.
This commit is contained in:
parent
1a96cce26f
commit
523e1288fa
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user