From: Toni Wilen Date: Thu, 10 Jul 2014 14:14:09 +0000 (+0300) Subject: Second track is not necessarily audio track. X-Git-Tag: 3000~138 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=99879e3e14dedd5c49687bdd0992db9bbcc90e73;p=francis%2Fwinuae.git Second track is not necessarily audio track. --- diff --git a/akiko.cpp b/akiko.cpp index 300a2a2f..f8241b11 100644 --- a/akiko.cpp +++ b/akiko.cpp @@ -737,7 +737,7 @@ static int get_cdrom_toc (void) d[10] = tobcd ((msf >> 0) & 0xff); if (s->point == 1 && (s->control & 0x0c) == 0x04) datatrack = 1; - if (s->point == 2) + if (s->point >= 2 && s->point < 100 && (s->control & 0x0c) != 0x04 && !secondtrack) secondtrack = addr; } cdrom_toc_crc = get_crc32 (cdrom_toc_buffer, cdrom_toc_cd_buffer.points * 13);