GBHawk: When windowing is active, start mode 3 earlier then usual (for pokemon yellow sync)

This commit is contained in:
alyosha-tas 2018-05-09 22:18:10 -04:00
parent 32f78cd311
commit da1d190cce
1 changed files with 11 additions and 0 deletions

View File

@ -825,6 +825,17 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBHawk
{
read_case = 8;
hbl_countdown = 5;
if (window_started)
{
hbl_countdown -= 2;
}
}
if (pixel_counter == 158 && window_started)
{
STAT &= 0xFC;
STAT |= 0x00;
if (STAT.Bit(3)) { HBL_INT = true; }
}
}
else if ((render_counter >= render_offset) && (pixel_counter < 0))