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 > Reading user name and color from firmware

#133477 - melw - Fri Jul 06, 2007 11:21 am

I did a brief search on both DS Tek and on these forums but couldn't find an answer right away, so here goes: How to read user settings stored on DS? I noticed at least Omalone is using the default user name stored in firmware in his Puzzlemaniak and this information could be useful for other homebrew games as well...

#133484 - mml - Fri Jul 06, 2007 12:50 pm

http://nocash.emubase.de/gbatek.htm#dsfirmwareusersettings

#133486 - Lick - Fri Jul 06, 2007 1:29 pm

Use libnds' PersonalData, which is a structure that points to the "RAM copy" of the current User Settings. This copy was created by the BIOS.
_________________
http://licklick.wordpress.com

#133534 - tepples - Fri Jul 06, 2007 11:15 pm

Lick wrote:
Use libnds' PersonalData, which is a structure that points to the "RAM copy" of the current User Settings. This copy was created by the BIOS.

Unless you want to make your program resilient to less-than-perfect .nds loaders, such as those built into some flash card adapters.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#133549 - chuckstudios - Sat Jul 07, 2007 1:21 am

*cough* EZ4 *cough*

It makes your name show up as Windirt >_>

#133557 - Lick - Sat Jul 07, 2007 1:31 am

Well yeah then you'd have to tell the ARM7 to read the User Settings from the Flash memory, which then adds the need for inter-processor communication to your project.
Which flash card adapters "sexual intercourse" up the RAM copy?

edit. Always those EZ POC's. If only the world only knew Supercards and R4s.
_________________
http://licklick.wordpress.com

#133568 - wintermute - Sat Jul 07, 2007 3:46 am

chuckstudios wrote:
*cough* EZ4 *cough*

It makes your name show up as Windirt >_>


Really?

Wow.

I just don't know what to say about that.

In other news.

Forthcoming changes will have the default arm7 core read user settings from firmware and the arm9 startup code will reset various registers and clear the VRAM. With a bit of luck that should increase compatibility with various cards.
_________________
devkitPro - professional toolchains at amateur prices
devkitPro IRC support
Personal Blog

#133922 - melw - Mon Jul 09, 2007 8:43 pm

Thanks for all the advice. In the end I just added readUserSettings() to ARM7 main and now I can access everything I need through the PersonalData struct even on ARM9 side.

It's amazing how an user can get happy simply by seeing his/her name on the screen. :)

#133948 - HyperHacker - Mon Jul 09, 2007 10:10 pm

What happens if your name uses Japanese or symbols? :-p
_________________
I'm a PSP hacker now, but I still <3 DS.

#134020 - tepples - Tue Jul 10, 2007 3:31 am

HyperHacker wrote:
What happens if your name uses Japanese or symbols? :-p

Probably the same thing that happens if you paste kana into a Notepad document when the font isn't set to something like MS PGothic that supports Japanese: you get a pile of boxes, and no そうこばん (sōkoban) will move them out of your way.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.