gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > Loading game icon from nds card

#121781 - Lick - Wed Mar 14, 2007 8:46 pm

Does anyone know how? I can read the header just fine, but after that, I don't know how to load the ROM data.

Code:
u8 *hdr = new u8[512];

sysSetBusOwners(true, true);
// Read header
memset(hdr, 0, 512);
cardReadHeader(hdr);

// Read icon/title
cmd[0]=0x00000000;
cmd[1]=0x00000000|(icon_offset>>8);          cardPolledTransfer(CARD_ACTIVATE|CARD_nRESET|0x01000000, (u32*)data, 0x840, (u8*)cmd);


data here is not valid.
_________________
http://licklick.wordpress.com

#121784 - Diddl - Wed Mar 14, 2007 8:57 pm

in the help file of no$gba is a very fine description about it. I never tested it, but it seems very simple to read ROM.

the only thing I was not really understanding was this key 1 and key 2 thing. but I think this should be easy after a few tries.

#121787 - Lick - Wed Mar 14, 2007 9:31 pm

Well it seems like all data except for the header and chip id, are encrypted.
_________________
http://licklick.wordpress.com