mirror of https://github.com/PCSX2/pcsx2.git
Fix for Endgame which tries to do 0 sector CDVD reads.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@4802 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
93163f988d
commit
cad9249b79
|
@ -834,6 +834,8 @@ __fi void cdvdReadInterrupt()
|
|||
pxAssume( cdvd.RErr == 0 );
|
||||
}
|
||||
|
||||
if (cdvd.nSectors > 0)
|
||||
{
|
||||
if (cdvdReadSector() == -1)
|
||||
{
|
||||
// This means that the BCR/DMA hasn't finished yet, and rather than fire off the
|
||||
|
@ -848,6 +850,7 @@ __fi void cdvdReadInterrupt()
|
|||
}
|
||||
|
||||
cdvd.Sector++;
|
||||
}
|
||||
|
||||
if (--cdvd.nSectors <= 0)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue