CDVD: Escape descriptor read on iso read failure

This commit is contained in:
refractionpcsx2 2022-11-29 16:04:12 +00:00
parent 5cdf0552ac
commit ff22a32a61
1 changed files with 4 additions and 1 deletions

View File

@ -62,7 +62,10 @@ IsoDirectory::IsoDirectory(SectorSource& r)
while (!done)
{
u8 sector[2048];
internalReader.readSector(sector, i);
// If this fails, we're not reading an iso, or it's bad.
if (!internalReader.readSector(sector, i))
break;
if (memcmp(&sector[1], "CD001", 5) == 0)
{
switch (sector[0])