From 90ea4cbe33b098e274f229a754d30069d08bb810 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Mon, 7 Sep 2015 19:24:30 -0700 Subject: [PATCH] GBA: Fix BIOS check on big endian --- CHANGES | 1 + src/gba/gba.c | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index b080e881f..00bc6e51f 100644 --- a/CHANGES +++ b/CHANGES @@ -6,6 +6,7 @@ Bugfixes: - Qt: Reenable double buffering, as disabling it broke some Windows configs - GBA Video: Start on the scanline BIOS finishes on if no BIOS is loaded - GBA: Deinit savegame when unloading a ROM + - GBA: Fix BIOS check on big endian Misc: - Qt: Window size command line options are now supported - Qt: Increase usability of key mapper diff --git a/src/gba/gba.c b/src/gba/gba.c index 25dccec13..6760efce4 100644 --- a/src/gba/gba.c +++ b/src/gba/gba.c @@ -688,7 +688,9 @@ bool GBAIsBIOS(struct VFile* vf) { } int i; for (i = 0; i < 7; ++i) { - if ((interruptTable[i] & 0xFFFF0000) != 0xEA000000) { + uint32_t interrupt; + LOAD_32(interrupt, i * sizeof(uint32_t), interruptTable); + if ((interrupt & 0xFFFF0000) != 0xEA000000) { return false; } }