mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-13 17:50:13 +01:00
CDVD: Escape descriptor read on iso read failure
This commit is contained in:
1 parent
5cdf0552ac
commit
ff22a32a61
1 file changed
+4
-1
@@ -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(§or[1], "CD001", 5) == 0)
|
||||
{
|
||||
switch (sector[0])
|
||||
|
||||
Reference in new issue
Block a user