MCPcopy Create free account
hub / github.com/PlayFab/gsdk / main

Function main

cpp/testapps/cppLinuxTestApp/main.cpp:50–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48 {
49 printf("Game on!\n");
50
51 std::vector<Microsoft::Azure::Gaming::ConnectedPlayer> players;
52 players.push_back(Microsoft::Azure::Gaming::ConnectedPlayer("player1"));
53 players.push_back(Microsoft::Azure::Gaming::ConnectedPlayer("player2"));
54 Microsoft::Azure::Gaming::GSDK::updateConnectedPlayers(players);
55
56 printf(" Config after Active.\n");
57 for (auto config : Microsoft::Azure::Gaming::GSDK::getConfigSettings())
58 {
59 printf("%s: %s\n", config.first.c_str(), config.second.c_str());
60 }
61
62 printf("Logs directory is: %s\n", Microsoft::Azure::Gaming::GSDK::getLogsDirectory().c_str());
63 }
64 else
65 {
66 printf("Not allocated. Server is being shut down.\n");
67 }
68 }
69 catch (const std::exception &ex)
70 {
71 printf("Problem initializing GSDK: %s\n", ex.what());
72 }
73
74 printf("Press enter to exit the program.\n");
75 getchar();
76
77 return 0;
78}

Callers

nothing calls this directly

Calls 2

whatMethod · 0.80
ConnectedPlayerClass · 0.50

Tested by

no test coverage detected