Skip to content

Commit

Permalink
use PSN account name as default player name
Browse files Browse the repository at this point in the history
  • Loading branch information
fgsfdsfgs committed Mar 26, 2018
1 parent 5cab43a commit b8250ca
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 0 additions & 1 deletion build/data/xash3d/cstrike/config.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ mp_decals "300"
mp_logecho "1"
mp_logfile "1"
musicvolume "1.0"
name "Player"
net_drawslider "0"
net_graph "0"
net_graphfillsegments "1"
Expand Down
1 change: 0 additions & 1 deletion build/data/xash3d/valve/config.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ mp_decals "300"
mp_logecho "1"
mp_logfile "1"
musicvolume "1.0"
name "Player"
net_drawslider "0"
net_graph "0"
net_graphfillsegments "1"
Expand Down
5 changes: 5 additions & 0 deletions engine/common/system.c
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,11 @@ char *Sys_GetCurrentUser( void )
if( pw )
return pw->pw_name;

#elif defined(__vita__)
static string username;
sceAppUtilSystemParamGetString( SCE_SYSTEM_PARAM_ID_USERNAME, username, SCE_SYSTEM_PARAM_USERNAME_MAXSIZE );
if( username[0] ) return username;

#endif
return "Player";
}
Expand Down

0 comments on commit b8250ca

Please sign in to comment.