1
0
Fork 0

Report Q-Channel track number in BCD, meaning it is not converted to binary by the CD-ROM device driver. Fixes the CD-Player feature of DOS Navigator 1.51 when playing past track 15.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4320
This commit is contained in:
ripsaw8080 2020-02-11 22:02:03 +00:00
parent 4a565a75ed
commit c91f46905b

View file

@ -975,7 +975,7 @@ static Bit16u MSCDEX_IOCTL_Input(PhysPt buffer,Bit8u drive_unit) {
TMSF abs,rel;
mscdex->GetSubChannelData(drive_unit,attr,track,index,rel,abs);
mem_writeb(buffer+1,attr);
mem_writeb(buffer+2,track);
mem_writeb(buffer+2,((track/10)<<4)|(track%10)); // track in BCD
mem_writeb(buffer+3,index);
mem_writeb(buffer+4,rel.min);
mem_writeb(buffer+5,rel.sec);