Merge pull request #6898 from 68bit/wd177x-dsk-permissive-of-missing-sectors

wd177x dsk: be permissive of some missing sectors in later tracks
This commit is contained in:
ajrhacker 2020-07-02 13:53:36 -04:00 committed by GitHub
commit 2d3e086357
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -460,7 +460,12 @@ void wd177x_format::check_compatibility(floppy_image *image, std::vector<int> &c
}
ns++;
}
if(ns != tf.sector_count)
if(ns > tf.sector_count)
goto fail;
// Be permissive of some missing sectors in later tracks
if(ns < tf.sector_count && track < 2)
goto fail;
}
}