mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-23 14:19:55 -06:00
emulate DMA timings.
keeps games from overflowing the GXFIFO... when they aren't fucking dumb.
This commit is contained in:
@ -841,6 +841,8 @@ void SubmitVertex()
|
||||
|
||||
|
||||
|
||||
int logflag = 0;
|
||||
|
||||
void CmdFIFOWrite(CmdFIFOEntry& entry)
|
||||
{
|
||||
if (CmdFIFO->IsEmpty() && !CmdPIPE->IsFull())
|
||||
@ -852,7 +854,8 @@ void CmdFIFOWrite(CmdFIFOEntry& entry)
|
||||
{
|
||||
if (CmdFIFO->IsFull())
|
||||
{
|
||||
printf("!!! GX FIFO FULL\n");
|
||||
if (!logflag) printf("!!! GX FIFO FULL\n");
|
||||
logflag = 1;
|
||||
//NDS::debug(0);
|
||||
return;
|
||||
}
|
||||
@ -876,6 +879,8 @@ CmdFIFOEntry CmdFIFORead()
|
||||
CheckFIFOIRQ();
|
||||
}
|
||||
|
||||
logflag = 0;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user