This sample uses the features of the friends library.
At least two CTR systems for establishing a friend relationship are required to run this demo.
The HOME Menu package and a wireless access point to connect to are required.
Input | Operation |
---|---|
A Button. | Displays whether login succeeded. |
B Button. | Cannot be used at the current time. |
X Button. | Updates the game mode. |
START | Exits the demo. |
debug_connect
demo.NetworkSetting.csu
, included in the CTR-SDKStart the HOME Menu and select the Friend List.
After registering each other as friends, go online with both systems.
Next, return to the development menu on either of the CTR systems and run the demo.
When successfully connected to the wireless access point, a log such as the following is displayed.
client: initialize ac client: AP connecting... access point connection is established. Start EventDispatchThread. PrincipalId:8049 MY PROFILE region:0 country:255 area:255 language:0 platform:2 screenname:F FRIEND INFO 0th friend PrincipalId:7692 LOCALFRIENDCODE:15741769547520229021 FRIEND RELATIONSHIP ESTABLISHED region:0 country:1 area:0 language:0 platform:2 -------------------------------- PRESS A : LOGIN PRESS B : LOGOUT PRESS X : UPDATE GAME MODE PRESS START : EXIT PROGRAM -------------------------------- NOTIFICATION_ONLINE
Manipulate the content displayed on the log screen or on the Friend List screen of the other CTR as necessary.
CONFIDENTIAL