From da23a32e2e60341aa841726ef7f999740f54ac6d Mon Sep 17 00:00:00 2001 From: shashclp Date: Fri, 28 Mar 2008 15:45:45 +0000 Subject: [PATCH] - Fix for an endianess bug reported by 'jvernet' and fixed by 'Phazz' (Reference: http://forums.desmume.org/viewtopic.php?id=759) --- desmume/src/NDSSystem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desmume/src/NDSSystem.c b/desmume/src/NDSSystem.c index 8dc6228bf..3fd38ee6b 100644 --- a/desmume/src/NDSSystem.c +++ b/desmume/src/NDSSystem.c @@ -491,7 +491,7 @@ void NDS_Reset( void) // Reference: http://nocash.emubase.de/gbatek.htm#dscartridgeheader for (i = 0; i < ((0x170+0x90)/4); i++) { - MMU_write32 (0, 0x027FFE00+i*4, ((u32*)MMU.CART_ROM)[i]); + MMU_write32 (0, 0x027FFE00+i*4, LE_TO_LOCAL_32(((u32*)MMU.CART_ROM)[i])); } MainScreen.offset = 0;