mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
Change the readers to correctly set the physical track for each sector using
the mapper (where appropriate).
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
#include "sector.h"
|
||||
#include "imagereader/imagereader.h"
|
||||
#include "image.h"
|
||||
#include "mapper.h"
|
||||
#include "logger.h"
|
||||
#include "fmt/format.h"
|
||||
#include "lib/config.pb.h"
|
||||
@@ -123,8 +124,8 @@ public:
|
||||
const auto& sector =
|
||||
image->put(header.track, head, header.sector);
|
||||
sector->status = Sector::OK;
|
||||
sector->logicalTrack = sector->physicalTrack =
|
||||
header.track;
|
||||
sector->logicalTrack = header.track;
|
||||
sector->physicalTrack = Mapper::remapTrackLogicalToPhysical(header.track);
|
||||
sector->logicalSide = sector->physicalHead = head;
|
||||
sector->logicalSector = header.sector;
|
||||
sector->data = data;
|
||||
|
||||
Reference in New Issue
Block a user