mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
D88/NFD: Add physical layout before adding sector.
Partially fixes #603, it is still busted if the number of tracks is specified larger than what is in the image, which used to work.
This commit is contained in:
@@ -194,11 +194,10 @@ public:
|
||||
}
|
||||
Bytes data(sectorSize);
|
||||
inputFile.read((char*)data.begin(), data.size());
|
||||
physical->add_sector(sectorId);
|
||||
const auto& sector = image->put(track, head, sectorId);
|
||||
sector->status = Sector::OK;
|
||||
sector->data = data;
|
||||
|
||||
physical->add_sector(sectorId);
|
||||
}
|
||||
|
||||
if (mediaFlag != 0x20)
|
||||
|
||||
Reference in New Issue
Block a user