Fix handling of index0/pregaps for ide cdrom. Various atapi protocol fixups (#809)

Revert sub-channel audio playing status
This commit is contained in:
zakk4223
2023-09-02 11:57:22 -04:00
committed by GitHub
parent cb8b90fe87
commit 2d67bfcb88
4 changed files with 121 additions and 58 deletions

View File

@@ -418,6 +418,11 @@ void ide_img_set(uint32_t drvnum, fileTYPE *f, int cd, int sectors, int heads, i
ide_inst[port].base = port ? IDE1_BASE : IDE0_BASE;
ide_inst[port].drive[drv].drvnum = drvnum;
if (drive->f && drive->f->opened())
{
FileClose(drive->f);
}
drive->f = f;
drive->cylinders = 0;