mirror of https://github.com/PCSX2/pcsx2.git
cdvdgigaherz: Fix Q subchannel relative offset calculation
The wrong comparison was used, so all the relative offsets were
completely wrong. Fixes the wrong track issue in the CD player.
Regression introduced in f314c2a4d9
.
This commit is contained in:
parent
1bcb7eccbc
commit
9be61f83df
|
@ -306,7 +306,7 @@ EXPORT s32 CALLBACK CDVDreadSubQ(u32 lsn, cdvdSubQ *subq)
|
||||||
lsn_to_msf(&subq->discM, &subq->discS, &subq->discF, lsn + 150);
|
lsn_to_msf(&subq->discM, &subq->discS, &subq->discF, lsn + 150);
|
||||||
|
|
||||||
u8 i = strack;
|
u8 i = strack;
|
||||||
while (i < etrack && lsn < tracks[i + 1].start_lba)
|
while (i < etrack && lsn >= tracks[i + 1].start_lba)
|
||||||
++i;
|
++i;
|
||||||
|
|
||||||
lsn -= tracks[i].start_lba;
|
lsn -= tracks[i].start_lba;
|
||||||
|
|
Loading…
Reference in New Issue