sonydriv: fixed long-standing disk-switch regression [R. Belmont]

This commit is contained in:
arbee 2018-06-24 19:53:10 -04:00 committed by Vas Crabb
parent 3a1182bdd4
commit d3679a6ff4

View File

@ -430,6 +430,12 @@ static void sony_doaction(device_t *device)
break;
case 0x03: /* Reset diskswitched */
f->disk_switched = 0;
// flopdrv.cpp won't reset its disk switch flag without
// doing a seek. So we do a seek of 0 tracks, which works.
if (cur_image)
{
cur_image->floppy_drive_seek(0);
}
break;
case 0x04: /* Step disk */
if (cur_image)