all repos — mgba @ bcad1494541fd163edde5fd588f5399fdb43e0d3

mGBA Game Boy Advance Emulator

GBA Hardware: e-Reader should not re-scan last card
Vicki Pfau vi@endrift.com
Sun, 29 Nov 2020 12:47:12 -0800
commit

bcad1494541fd163edde5fd588f5399fdb43e0d3

parent

fbba3efb344df982f32cbf9cf3252b193263a9d3

1 files changed, 3 insertions(+), 0 deletions(-)

jump to
M src/gba/ereader.csrc/gba/ereader.c

@@ -612,6 +612,9 @@ }

hw->eReaderRegisterControl0 = control; if (!EReaderControl0IsScan(oldControl) && EReaderControl0IsScan(control)) { if (hw->eReaderX > 1000) { + if (hw->eReaderDots) { + memset(hw->eReaderDots, 0, EREADER_DOTCODE_SIZE); + } int i; for (i = 0; i < EREADER_CARDS_MAX; ++i) { if (!hw->eReaderCards[i].data) {