all repos — mgba @ 03b5e2d78eb58a1aac3fccd4bd0e6fff5d13bc59

mGBA Game Boy Advance Emulator

Change the GBA magic to work on even improperly compiled ROMs
Jeffrey Pfau jeffrey@endrift.com
Tue, 21 Oct 2014 22:17:52 -0700
commit

03b5e2d78eb58a1aac3fccd4bd0e6fff5d13bc59

parent

8903d3145849278cd087aabe72ebe4ad46b78464

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

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

@@ -14,8 +14,8 @@

const uint32_t GBA_ARM7TDMI_FREQUENCY = 0x1000000; const uint32_t GBA_COMPONENT_MAGIC = 0x1000000; -static const size_t GBA_ROM_MAGIC_OFFSET = 4; -static const uint8_t GBA_ROM_MAGIC[] = { 0x24, 0xFF, 0xAE, 0x51, 0x69, 0x9A, 0xA2, 0x21 }; +static const size_t GBA_ROM_MAGIC_OFFSET = 1; +static const uint8_t GBA_ROM_MAGIC[] = { 0x00, 0x00, 0xEA }; enum { SP_BASE_SYSTEM = 0x03FFFF00,