]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Second track is not necessarily audio track.
authorToni Wilen <twilen@winuae.net>
Thu, 10 Jul 2014 14:14:09 +0000 (17:14 +0300)
committerToni Wilen <twilen@winuae.net>
Thu, 10 Jul 2014 14:14:09 +0000 (17:14 +0300)
akiko.cpp

index 300a2a2f0f19c3285a63cb83bd40e6325f5ec520..f8241b11ef22d15d9a67123e0d53511bfd4e4812 100644 (file)
--- 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);