CD-ROM drive is now secondary master if no hard drive is present in that position.
This commit is contained in:
parent
2352033b48
commit
30f92469d1
1 changed files with 6 additions and 1 deletions
|
|
@ -568,7 +568,12 @@ void resetide(void)
|
||||||
loadhd(&ide_drives[1], 1, ide_fn[1]);
|
loadhd(&ide_drives[1], 1, ide_fn[1]);
|
||||||
loadhd(&ide_drives[2], 2, ide_fn[2]);
|
loadhd(&ide_drives[2], 2, ide_fn[2]);
|
||||||
if (cdrom_enabled)
|
if (cdrom_enabled)
|
||||||
ide_drives[3].type = IDE_CDROM;
|
{
|
||||||
|
if (ide_drives[2].type == IDE_NONE)
|
||||||
|
ide_drives[2].type = IDE_CDROM;
|
||||||
|
else
|
||||||
|
ide_drives[3].type = IDE_CDROM;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
loadhd(&ide_drives[3], 3, ide_fn[3]);
|
loadhd(&ide_drives[3], 3, ide_fn[3]);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue