MCPcopy Create free account
hub / github.com/ddnet/ddnet / Con_AddExcludedCountry

Method Con_AddExcludedCountry

src/engine/client/serverbrowser.cpp:165–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163}
164
165void CServerBrowser::Con_AddExcludedCountry(IConsole::IResult *pResult, void *pUserData)
166{
167 CServerBrowser *pThis = static_cast<CServerBrowser *>(pUserData);
168 const char *pCommunityId = pResult->GetString(0);
169 const char *pCountryName = pResult->GetString(1);
170 if(!pThis->ValidateCommunityId(pCommunityId) || !pThis->ValidateCountryName(pCountryName))
171 return;
172 pThis->CountriesFilter().Add(pCommunityId, pCountryName);
173}
174
175void CServerBrowser::Con_RemoveExcludedCountry(IConsole::IResult *pResult, void *pUserData)
176{

Callers

nothing calls this directly

Calls 4

ValidateCommunityIdMethod · 0.80
ValidateCountryNameMethod · 0.80
GetStringMethod · 0.45
AddMethod · 0.45

Tested by

no test coverage detected