From 71f74d25b0188b5df07e3971ba642ef012bec461 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Sat, 2 Jul 2022 20:32:48 -0700 Subject: [PATCH] GBA: Fix 64 MiB GBA Video ROMs --- src/gba/gba.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gba/gba.c b/src/gba/gba.c index 1c0de38e4..a6df59f4c 100644 --- a/src/gba/gba.c +++ b/src/gba/gba.c @@ -257,7 +257,7 @@ void GBAReset(struct ARMCore* cpu) { memset(gba->debugString, 0, sizeof(gba->debugString)); - if (gba->romVf && gba->pristineRomSize > SIZE_CART0) { + if (gba->romVf && gba->romVf->size(gba->romVf) > SIZE_CART0) { char ident; gba->romVf->seek(gba->romVf, 0xAC, SEEK_SET); gba->romVf->read(gba->romVf, &ident, 1);