Page 1 of 1

Retrieving user infos?

Posted: Sun Mar 13, 2011 8:01 am
by MisterFuzzy
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... :?

Re: Retrieving user infos?

Posted: Mon Mar 14, 2011 10:48 am
by eradsoft
you can retrieve this information from the
tPERSONAL_DATA struct defined in system.h

http://devkitpro.org/libnds/a00098.html

Re: Retrieving user infos?

Posted: Mon Mar 14, 2011 8:29 pm
by lazyprogramer
I got 'system.h no such file or directory' error!?

Re: Retrieving user infos?

Posted: Mon Mar 14, 2011 9:21 pm
by zeromus
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?

Re: Retrieving user infos?

Posted: Tue Mar 15, 2011 11:44 am
by vuurrobin
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.

Re: Retrieving user infos?

Posted: Tue Mar 15, 2011 5:00 pm
by lazyprogramer
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!