mirror of https://github.com/PCSX2/pcsx2.git
CDVD: reproducing old behavior, boot in BIOS if invalid drive found
This commit is contained in:
parent
4df5c0ee1e
commit
fd70ddda02
|
@ -321,8 +321,13 @@ s32 cdvdDirectReadSector(u32 sector, s32 mode, u8* buffer)
|
||||||
{
|
{
|
||||||
static u8 data[2352 * sectors_per_read];
|
static u8 data[2352 * sectors_per_read];
|
||||||
|
|
||||||
if (sector >= src->GetSectorCount())
|
try {
|
||||||
return -1;
|
if (sector >= src->GetSectorCount())
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
catch(...) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
// Align to cache block
|
// Align to cache block
|
||||||
u32 sector_block = sector & ~(sectors_per_read - 1);
|
u32 sector_block = sector & ~(sectors_per_read - 1);
|
||||||
|
|
Loading…
Reference in New Issue