libretro / vba-next

Optimized port of VBA-M to Libretro.
GNU General Public License v2.0
96 stars 88 forks source link

Fix VRAM 16/32 bit unaligned reads #122

Closed negativeExponent closed 5 years ago

negativeExponent commented 5 years ago

Fix https://github.com/libretro/vba-next/issues/12

The problem was because during VRAM reads, the original address was changed causing it to fail to the unaligned check that should swap the values.

This PR fixed that by assigning the original address to another variable instead during vram in both 16/32 bit reads.

negativeExponent commented 5 years ago

anyway we can fix the wiiu build error? its not related to building core itself..