mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 22:28:10 +00:00
Count CD tracks from the beginning, not the end... ^^;;
svn-id: r8656
This commit is contained in:
parent
2f11bb5dd7
commit
2aa2076ceb
@ -63,7 +63,7 @@ static bool find_track(int track, int &first_sec, int &last_sec)
|
||||
last = TOC_TRACK(toc->last);
|
||||
if(first < 1 || last > 99 || first > last)
|
||||
return false;
|
||||
for(i=last; i>=first; --i)
|
||||
for(i=first; i<=last; i++)
|
||||
if(!(TOC_CTRL(toc->entry[i-1])&4))
|
||||
if(track==1) {
|
||||
first_sec = TOC_LBA(toc->entry[i-1]);
|
||||
|
Loading…
Reference in New Issue
Block a user