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 > How to read the Game ID and the CRC32 of nds file

#168130 - hamm - Fri Apr 10, 2009 6:13 pm

Hi,

i want to get the game id from the nds file header with my DS Homebrew (not a windows/linux application) but I don't know how to get it.
How can i get the CRC32 from the checksum from the nds file header.

I didn't find any example for this problem. Can someone help me please?

#168223 - monocasa - Wed Apr 15, 2009 11:41 pm

When loading the rom the header is loaded to 0x027ffe00. So (assuming that you're using devikitpro) something like

Code:

tNDSHeader* header = (tNDSHeader*)0x027ffe00;

should work. That's about what I did last time that I needed to do this. But what are you using it for?