GBA: Fix BIOS check on big endian

This commit is contained in:
Jeffrey Pfau 2015-09-07 19:24:30 -07:00
parent ea5e73e44a
commit 88f8f2451d
2 changed files with 4 additions and 1 deletions

View File

@ -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: Remove useless help icons in dialogs
- GBA: Attempting to save a screenshot-style savestate should be allowed without libpng

View File

@ -666,7 +666,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;
}
}