increment affine reference points before hdma

This alone seems to fix Golden Sun. Many games like Gadget Racers still
don't work, but this seems to be a closer approximation of "correct".
Finally, the best game for the GBA is playable... I'm sad that this was
all it took to "fix" lol.
This commit is contained in:
Matthew Berry 2021-05-25 00:23:34 -07:00
parent 7b114029a9
commit 71131ac86a

View file

@ -47,11 +47,11 @@ module GBA
end
if @vcount < 160
scanline
@gba.dma.trigger_hdma
@bgref_int.each_with_index do |bgrefs, bg_num|
bgrefs[0] &+= @bgaff[bg_num][1].num # bgx += dmx
bgrefs[1] &+= @bgaff[bg_num][3].num # bgy += dmy
end
@gba.dma.trigger_hdma
end
end