Mercurial > repos > blastem
comparison cdd_mcu.c @ 2079:5a2b759f6b2d
BIOS doesn't like it if TOC read happens too quickly
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 01 Feb 2022 01:14:27 -0800 |
parents | c534a3199020 |
children | bafb757e1cd2 |
comparison
equal
deleted
inserted
replaced
2078:c534a3199020 | 2079:5a2b759f6b2d |
---|---|
122 case DS_TOC_READ: | 122 case DS_TOC_READ: |
123 handle_seek(context); | 123 handle_seek(context); |
124 if (!context->seeking) { | 124 if (!context->seeking) { |
125 context->head_pba++; | 125 context->head_pba++; |
126 if (context->media && context->media->type == MEDIA_CDROM && context->media->num_tracks) { | 126 if (context->media && context->media->type == MEDIA_CDROM && context->media->num_tracks) { |
127 if (context->head_pba > 3*context->media->num_tracks + 1) { | 127 if (context->head_pba > 3*(context->media->num_tracks + 2)) { |
128 context->toc_valid = 1; | 128 context->toc_valid = 1; |
129 context->seeking = 1; | 129 context->seeking = 1; |
130 context->seek_pba = LEADIN_SECTORS + context->media->tracks[0].start_lba; | 130 context->seek_pba = LEADIN_SECTORS + context->media->tracks[0].start_lba; |
131 context->status = DS_PAUSE; | 131 context->status = DS_PAUSE; |
132 } | 132 } |