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

Method Save

src/engine/client/serverbrowser.cpp:1969–1979  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1967}
1968
1969void CFavoriteCommunityFilterList::Save(IConfigManager *pConfigManager) const
1970{
1971 char aBuf[32 + CServerInfo::MAX_COMMUNITY_ID_LENGTH];
1972 for(const auto &FavoriteCommunity : m_vEntries)
1973 {
1974 str_copy(aBuf, "add_favorite_community \"");
1975 str_append(aBuf, FavoriteCommunity.Id());
1976 str_append(aBuf, "\"");
1977 pConfigManager->WriteLine(aBuf);
1978 }
1979}
1980
1981const std::vector<CCommunityId> &CFavoriteCommunityFilterList::Entries() const
1982{

Callers 3

RunMethod · 0.45
UpdateMethod · 0.45
ConfigSaveCallbackMethod · 0.45

Calls 5

WriteLineMethod · 0.80
str_copyFunction · 0.50
str_appendFunction · 0.50
IdMethod · 0.45
NameMethod · 0.45

Tested by

no test coverage detected