MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / WriteFavourites

Method WriteFavourites

src/openrct2/network/ServerList.cpp:231–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229 }
230
231 void ServerList::WriteFavourites() const
232 {
233 // Save just favourite servers
234 std::vector<ServerListEntry> favouriteServers;
235 std::copy_if(
236 _serverEntries.begin(), _serverEntries.end(), std::back_inserter(favouriteServers),
237 [](const ServerListEntry& entry) { return entry.Favourite; });
238 WriteFavourites(favouriteServers);
239 }
240
241 bool ServerList::WriteFavourites(const std::vector<ServerListEntry>& entries) const
242 {

Callers 3

onDropdownMethod · 0.80
onTextInputMethod · 0.80

Calls 10

GetContextFunction · 0.85
FileStreamClass · 0.85
GetDirectoryPathMethod · 0.80
endMethod · 0.65
CombineFunction · 0.50
beginMethod · 0.45
sizeMethod · 0.45
dataMethod · 0.45
WriteStringMethod · 0.45
whatMethod · 0.45

Tested by

no test coverage detected