all repos — mgba @ cb14f00279d56ff22efa8bf9032b613418d88d68

mGBA Game Boy Advance Emulator

GBA: Even less stringent GBA ROM detection
Jeffrey Pfau jeffrey@endrift.com
Tue, 13 Jan 2015 04:06:47 -0800
commit

cb14f00279d56ff22efa8bf9032b613418d88d68

parent

c05b1664691e89064a2b1aa9ef4ee7c94d66b121

1 files changed, 2 insertions(+), 2 deletions(-)

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

@@ -21,8 +21,8 @@

const uint32_t GBA_ARM7TDMI_FREQUENCY = 0x1000000; const uint32_t GBA_COMPONENT_MAGIC = 0x1000000; -static const size_t GBA_ROM_MAGIC_OFFSET = 2; -static const uint8_t GBA_ROM_MAGIC[] = { 0x00, 0xEA }; +static const size_t GBA_ROM_MAGIC_OFFSET = 3; +static const uint8_t GBA_ROM_MAGIC[] = { 0xEA }; static void GBAInit(struct ARMCore* cpu, struct ARMComponent* component); static void GBAInterruptHandlerInit(struct ARMInterruptHandler* irqh);