#162007 - Jeremysr - Sat Aug 23, 2008 2:11 am
I want to get the DS username, but when I set the username to something else (from the DS firmware) and then run my program, it still displays the username that I had before I changed it. The DS firmware displays my new one but my program still displays the old one. If I go to the options again and set it again, then it will work. Why does this happen and how can I fix it?
Here is the code:
My program isn't storing the username anywhere other than in memory so it can't be a problem with my program.
_________________
viewsourcecode
Here is the code:
Code: |
void get_username(char *username) {
struct tPERSONAL_DATA *user_info = PersonalData; for (u8 i = 0; i < user_info->nameLen; i++) { username[i] = (char)(user_info->name[i] & 0x00FF); } username[user_info->nameLen] = '\0'; } |
My program isn't storing the username anywhere other than in memory so it can't be a problem with my program.
_________________
viewsourcecode