Rework the layout stuff to be more correct. Physical skew no longer affects the

order in the resulting images.
This commit is contained in:
dg
2022-12-04 19:19:37 +00:00
parent e3219087c9
commit a91dee27e7
13 changed files with 167 additions and 36 deletions

View File

@@ -112,7 +112,7 @@ std::unique_ptr<Image> ImageReader::readMappedImage()
auto newSector = std::make_shared<Sector>();
*newSector = *e;
newSector->logicalSector =
trackLayout->filesystemToLogicalSectorMap.at(e->logicalSector);
trackLayout->filesystemToNaturalSectorMap.at(e->logicalSector);
sectors.insert(newSector);
}

View File

@@ -40,7 +40,7 @@ public:
break;
auto trackLayout = Layout::getLayoutOfTrack(track, side);
for (int sectorId : trackLayout->logicalSectorOrder)
for (int sectorId : trackLayout->naturalSectorOrder)
{
Bytes data(trackLayout->sectorSize);
inputFile.read((char*)data.begin(), data.size());