Another mahoosive refactor: move away from using protos for the disk output in

favour of pod objects, which allows STL contains. Lots of shared_ptrs
everywhere. Much simpler and more effective code. The reader works with one of
the decoders; still have to do the rest of them and the encoders.
This commit is contained in:
David Given
2021-07-15 22:50:29 +02:00
parent f1f27ffd33
commit 458d0f7a1b
26 changed files with 421 additions and 305 deletions

View File

@@ -113,8 +113,8 @@ public:
std::unique_ptr<Sector>& sector = sectors.get(header.track, head, header.sector);
sector.reset(new Sector);
sector->status = Sector::OK;
sector->logicalTrack = sector->physicalTrack = header.track;
sector->logicalSide = sector->physicalSide = head;
sector->logicalTrack = sector->physicalCylinder = header.track;
sector->logicalSide = sector->physicalHead = head;
sector->logicalSector = header.sector;
sector->data = data;
}