correctly emulate GX FIFO DMA of 0 words (why would anybody do that?) by properly freaking out

This commit is contained in:
zeromus 2010-06-16 20:48:26 +00:00
parent 68ffbc5ca7
commit f72ce94f8d
1 changed files with 1 additions and 1 deletions

View File

@ -2000,7 +2000,7 @@ void DmaController::doCopy()
if(todo == 0) todo = 0x200000; //according to gbatek.. //TODO - this should not work this way for arm7 according to gbatek
if(startmode == EDMAMode_MemDisplay) todo = 128; //this is a hack. maybe an alright one though. it should be 4 words at a time. this is a whole scanline
if(startmode == EDMAMode_Card) todo *= 0x80;
if(startmode == EDMAMode_GXFifo) todo = std::min(wordcount,(u32)112);
if(startmode == EDMAMode_GXFifo) todo = std::min(todo,(u32)112);
//determine how we're going to copy
bool bogarted = false;