Teach the Amiga decoder how many sectors to expect on each track.

This commit is contained in:
David Given
2020-03-09 12:54:29 +00:00
parent ce76dc4279
commit a401173f6d
2 changed files with 9 additions and 0 deletions

View File

@@ -56,3 +56,10 @@ void AmigaDecoder::decodeSectorRecord()
_sector->data.writer().append(amigaDeinterleave(ptr, 512)).append(recoveryinfo);
_sector->status = (gotdatachecksum == wanteddatachecksum) ? Sector::OK : Sector::BAD_CHECKSUM;
}
std::set<unsigned> AmigaDecoder::requiredSectors(Track& track) const
{
static std::set<unsigned> sectors = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
return sectors;
}