should fix GS codes that don't work on games which use lcd interrupts instead of vblank

thanks unmacaque
This commit is contained in:
squall-leonhart 2011-05-05 13:17:13 +00:00
parent 5f5ddb11a4
commit f1812fd2e3
1 changed files with 1 additions and 0 deletions

View File

@ -2016,6 +2016,7 @@ void gbVblank_interrupt()
void gbLcd_interrupt()
{
gbCheatWrite(false); // Emulates GS codes.
gbMemory[0xff0f] = register_IF &= 0xfd;
gbWriteMemory(--SP.W, PC.B.B1);
gbWriteMemory(--SP.W, PC.B.B0);