Stop disc drive on write protect error. Fixes Hitchhiker's Guide booter.
This commit is contained in:
parent
640c6a61e2
commit
882da6537d
1 changed files with 2 additions and 0 deletions
|
|
@ -284,6 +284,7 @@ void disc_sector_poll()
|
|||
if (writeprot[disc_sector_drive])
|
||||
{
|
||||
fdc_writeprotect();
|
||||
disc_sector_state = STATE_IDLE;
|
||||
return;
|
||||
}
|
||||
if (index_count > 1)
|
||||
|
|
@ -349,6 +350,7 @@ void disc_sector_poll()
|
|||
if (writeprot[disc_sector_drive])
|
||||
{
|
||||
fdc_writeprotect();
|
||||
disc_sector_state = STATE_IDLE;
|
||||
return;
|
||||
}
|
||||
if (!index_count || fdc_get_bitcell_period() != get_bitcell_period() ||
|
||||
|
|
|
|||
Loading…
Reference in a new issue