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:
ramapcsx2 2011-07-09 23:47:12 +00:00
parent 93163f988d
commit cad9249b79
1 changed files with 14 additions and 11 deletions

View File

@ -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)
{