get username

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
nDEV
Posts: 48
Joined: Fri Apr 13, 2007 1:26 am

get username

Post by nDEV »

Is there any way to get the current username ?

thanks
User avatar
Wally
Posts: 663
Joined: Mon Sep 26, 2005 11:25 am

Post by Wally »

uhhm Beg yours?
nDEV
Posts: 48
Joined: Fri Apr 13, 2007 1:26 am

Post by nDEV »

what?
Im asking for the username that can be found in :
System->username
fergie4000
Posts: 25
Joined: Fri Jan 19, 2007 3:03 pm

Post by fergie4000 »

There is an example of this in the samples that come with the SDK
nDEV
Posts: 48
Joined: Fri Apr 13, 2007 1:26 am

Post by nDEV »

ok , i will search for it..
Insert_witty_name
Posts: 376
Joined: Wed May 10, 2006 11:31 pm

Post by Insert_witty_name »

The sample is in /samples/utility/systemparam

It's a bit buried in there, but the code you are wanting is something like:

Code: Select all

char nickName[20];
sceUtilityGetSystemParamString(PSP_SYSTEMPARAM_ID_STRING_NICKNAME, nickName, 20);
pspDebugScreenPrintf(nickName);
Post Reply