all repos — mgba @ eecf70ee5818bd3ee461245b529feb64a7eaba63

mGBA Game Boy Advance Emulator

Fix magic number for some games
Jeffrey Pfau jeffrey@endrift.com
Wed, 22 Oct 2014 22:00:08 -0700
commit

eecf70ee5818bd3ee461245b529feb64a7eaba63

parent

0050fb23c30c8b7192b77d3591ea8f5939702836

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 = 1; -static const uint8_t GBA_ROM_MAGIC[] = { 0x00, 0x00, 0xEA }; +static const size_t GBA_ROM_MAGIC_OFFSET = 2; +static const uint8_t GBA_ROM_MAGIC[] = { 0x00, 0xEA }; enum { SP_BASE_SYSTEM = 0x03FFFF00,