static void SetLocalPlayerName( const String & playerName, qUnsignedInt8 languageCode );
Name | Description | |
---|---|---|
playerName | The name referenced by other participants in the peer-to-peer session. | |
languageCode | The language code for the name. |
Sets the player name and language code for the local station.
This function sets the player name and language code for the local station, and automatically sets the principal ID of the client.
The values set by this function can be referenced from other stations by using the functions GetPlayerName
, GetLanguageCode
, and GetPrincipalID
. The name length must be no more than 16 characters, including the null terminator.
Do not call this function until after you have created the Net-Z instance. You must use this function to specify the player name for every peer-to-peer session (that is, every time you recreate the NetZ
object).
Specify languageCode when determining whether a language from a region other than that of the application is in use. To use the console's language setting, use the value from the nn::cfg::CTR::GetLanguage
function.
CONFIDENTIAL