Homebrew Homebrew retrieve 3DS user name?

XavyrrVaati

Hobbyist programmer?
OP
Member
Joined
Feb 23, 2014
Messages
385
Trophies
0
XP
468
Country
United States
I've looked it up several times, and come up with nothing. Is there a way for homebrew to get the username/nickname used by the primary Mii/NNID? I know a bunch of games can get it, I was curious if it was possible. I'm actually surprised that I haven't seen it done before.
 

Ryccardo

watching Thames TV from London
Member
Joined
Feb 13, 2015
Messages
7,400
Trophies
0
Age
27
Location
Imola
XP
6,392
Country
Italy
A very, very dirty way for now could be opening shared extdata f000000b, opening CFL_DB.dat, searching for the top-left Mii on the first page (03 0? 00 30; variable is 0 or 1), skip 0xC characters after this pattern, and read ten 2-byte characters :P

(Of course, it's not guaranteed - but pretty likely - the personal mii is the first one on the grid)

(We haven't figured out yet how a Personal Mii is identified)
 
  • Like
Reactions: XavyrrVaati

XavyrrVaati

Hobbyist programmer?
OP
Member
Joined
Feb 23, 2014
Messages
385
Trophies
0
XP
468
Country
United States
I'm assuming it would be available through the friend services (https://www.3dbrew.org/wiki/Friend_Services) but it doesn't look like libctru implements those yet.
Well crap, hopefully it will be supported eventually lol.
A very, very dirty way for now could be opening shared extdata f000000b, opening CFL_DB.dat, searching for the top-left Mii on the first page (03 0? 00 30; variable is 0 or 1), skip 0xC characters after this pattern, and read ten 2-byte characters :P

(Of course, it's not guaranteed - but pretty likely - the personal mii is the first one on the grid)

(We haven't figured out yet how a Personal Mii is identified)
RIP That sounds way out of my league. xD But damn I'm impressed with the workaround concept.
 
General chit-chat
Help Users
    Skelletonike @ Skelletonike: alright, accepted +1