Skip to content

Commit 969289a

Browse files
committed
We no longer need the network_caps event
1 parent e340de6 commit 969289a

1 file changed

Lines changed: 0 additions & 38 deletions

File tree

GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/WOLWelcomeMenu.cpp

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -265,44 +265,6 @@ static void updateNumPlayersOnline(void)
265265

266266
//<hexcol>%hs for colors
267267

268-
// record the game data to backend
269-
{
270-
271-
PortMapper::EMappingTech mappingTechUsed = NGMP_OnlineServicesManager::GetInstance()->GetPortMapper().GetPortMappingTechnologyUsed();
272-
ECapabilityState NATDirectConnect = NGMP_OnlineServicesManager::GetInstance()->GetPortMapper().HasDirectConnect();
273-
bool bHasPortMapped = NGMP_OnlineServicesManager::GetInstance()->GetPortMapper().HasPortOpen();
274-
int preferredPort = NGMP_OnlineServicesManager::GetInstance()->GetPortMapper().GetOpenPort();
275-
276-
AsciiString sentryMsg;
277-
sentryMsg.format("Determined Network Capabilities");
278-
279-
// add info about how the game ended
280-
sentry_set_extra("direct_connect", sentry_value_new_bool(NATDirectConnect == ECapabilityState::SUPPORTED));
281-
sentry_set_extra("port_mapped", sentry_value_new_bool(bHasPortMapped));
282-
sentry_set_extra("port_mapped_tech", sentry_value_new_int32((int)mappingTechUsed));
283-
sentry_set_extra("preferred_port", sentry_value_new_int32(preferredPort));
284-
285-
// local player info
286-
int64_t userID = -1;
287-
std::string strDisplayname = "Unknown";
288-
if (NGMP_OnlineServicesManager::GetInstance() != nullptr)
289-
{
290-
userID = NGMP_OnlineServicesManager::GetInstance()->GetAuthInterface()->GetUserID();
291-
strDisplayname = NGMP_OnlineServicesManager::GetInstance()->GetAuthInterface()->GetDisplayName().str();
292-
}
293-
std::string strUserID = std::format("{}", userID);
294-
295-
sentry_set_extra("user_id", sentry_value_new_int32(userID));
296-
sentry_set_extra("user_displayname", sentry_value_new_string(strDisplayname.c_str()));
297-
298-
// send event to sentry
299-
sentry_capture_event(sentry_value_new_message_event(
300-
SENTRY_LEVEL_INFO,
301-
"NETWORK_CAPS",
302-
sentryMsg.str()
303-
));
304-
}
305-
306268
while (headingStr.nextToken(&line, UnicodeString(L"\n")))
307269
{
308270
if (line.getCharAt(line.getLength()-1) == '\r')

0 commit comments

Comments
 (0)