MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / SaveBanList

Function SaveBanList

engine/Poseidon/Network/NetworkServer.cpp:211–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209 }
210 list.AddUnique(value);
211 }
212}
213
214void SaveBanList(RString filename, const FindArray<__int64>& list)
215{
216 QOFStream f(filename);
217 for (int i = 0; i < list.Size(); i++)
218 {
219 char buffer[32];
220 _i64toa(list[i], buffer, 10);
221 f.write(buffer, strlen(buffer));
222 f.put('\r');
223 f.put('\n');
224 }
225 f.close();
226}

Callers 3

BanMethod · 0.85
UnbanMethod · 0.85

Calls 4

SizeMethod · 0.45
writeMethod · 0.45
putMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected