| 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 | } |
nothing calls this directly
no test coverage detected