GBA Hardware: e-Reader should not re-scan last card
Vicki Pfau vi@endrift.com
Sun, 29 Nov 2020 12:47:12 -0800
1 files changed,
3 insertions(+),
0 deletions(-)
jump to
M
src/gba/ereader.c
→
src/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) {