Retrieving user infos?

Post Reply
MisterFuzzy
Posts: 4
Joined: Sat Feb 12, 2011 6:35 am

Retrieving user infos?

Post by MisterFuzzy » Sun Mar 13, 2011 8:01 am

I know this is a n00b question, but how can I retrieve any user infos? I can't seem to find a tutorial/example anywhere... :?

eradsoft
Posts: 30
Joined: Fri Dec 17, 2010 1:34 pm
Location: Either side of South Bypass, Madrid, Spain

Re: Retrieving user infos?

Post by eradsoft » Mon Mar 14, 2011 10:48 am

you can retrieve this information from the
tPERSONAL_DATA struct defined in system.h

http://devkitpro.org/libnds/a00098.html
--------------------------------
Welcome, my son, to the machine.
Pink Floyd.

lazyprogramer
Posts: 85
Joined: Mon Sep 27, 2010 5:26 pm

Re: Retrieving user infos?

Post by lazyprogramer » Mon Mar 14, 2011 8:29 pm

I got 'system.h no such file or directory' error!?

zeromus
Posts: 212
Joined: Wed Mar 31, 2010 6:05 pm

Re: Retrieving user infos?

Post by zeromus » Mon Mar 14, 2011 9:21 pm

and i suppose it would be too much to ask for you to search for system.h, look at the directory it is, and consider how you have included files in that directory in the past, and apply that to the case of system.h?

User avatar
vuurrobin
Posts: 222
Joined: Fri Jul 11, 2008 8:49 pm
Location: The Netherlands
Contact:

Re: Retrieving user infos?

Post by vuurrobin » Tue Mar 15, 2011 11:44 am

you shouldn't include "system.h", it already gets included in "nds.h"

you can access the user data with the "PersonalData" define, so "PersonalData->name" will get you the users name in utf-16 format.

lazyprogramer
Posts: 85
Joined: Mon Sep 27, 2010 5:26 pm

Re: Retrieving user infos?

Post by lazyprogramer » Tue Mar 15, 2011 5:00 pm

and i suppose it would be too much to ask for you to search for system.h, look at the directory it is, and consider how you have included files in that directory in the past, and apply that to the case of system.h?
Ooups!
I understand!
Thanks, vuurrobin!

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests