mirror of
https://github.com/libretro/RetroArch.git
synced 2025-04-02 10:51:52 -04:00
cdrom: skip retries for ATIP read if command fails
This commit is contained in:
parent
6e8797d2ef
commit
f94a924be9
1 changed files with 3 additions and 2 deletions
|
@ -391,8 +391,9 @@ retry:
|
|||
{
|
||||
cdrom_print_sense_data(sense, sizeof(sense));
|
||||
|
||||
/* INQUIRY/TEST should never fail, don't retry */
|
||||
if (cmd[0] != 0x0 && cmd[0] != 0x12)
|
||||
/* INQUIRY/TEST should never fail, don't retry. */
|
||||
/* READ ATIP seems to fail outright on some drives (BW-16D1HT) with pressed discs, skip retries. */
|
||||
if (cmd[0] != 0x0 && cmd[0] != 0x12 && !(cmd[0] == 0x43 && cmd[2] == 0x4))
|
||||
{
|
||||
unsigned char key = sense[2] & 0xF;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue