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 > Getting the 4 character DLDI code

#160662 - chuckstudios - Sat Jul 19, 2008 7:34 pm

I'm writing a program that requires a 'ping' to a PHP script which can identify the flashcart being used. The easiest way I see to do this is to send the 4 character code used in DLDI, located at 0x60 of every patch. However, I have no idea how to discover this string in software running on the Nintendo DS. Are there any code examples available for this?

#160664 - Dwedit - Sat Jul 19, 2008 9:37 pm

Maybe this?
extern const char _io_dldi[4];
_________________
"We are merely sprites that dance at the beck and call of our button pressing overlord."

#160668 - chuckstudios - Sat Jul 19, 2008 10:28 pm

Thanks, Dwedit, that worked great.

#160778 - josath - Tue Jul 22, 2008 12:06 am

I think accessing internal variables is not a great idea. The official way of doing it is via stat("/"):

see post by chishm