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

Method StartRecord

src/engine/server/server.cpp:3874–3895  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3872}
3873
3874void CServer::StartRecord(int ClientId)
3875{
3876 if(Config()->m_SvPlayerDemoRecord)
3877 {
3878 char aFilename[IO_MAX_PATH_LENGTH];
3879 str_format(aFilename, sizeof(aFilename), "demos/%s_%d_%d_tmp.demo", GameServer()->Map()->BaseName(), m_NetServer.Address().port, ClientId);
3880 m_aDemoRecorder[ClientId].Start(
3881 Storage(),
3882 Console(),
3883 aFilename,
3884 GameServer()->NetVersion(),
3885 GameServer()->Map()->BaseName(),
3886 m_aCurrentMapSha256[MAP_TYPE_SIX],
3887 m_aCurrentMapCrc[MAP_TYPE_SIX],
3888 "server",
3889 m_aCurrentMapSize[MAP_TYPE_SIX],
3890 m_apCurrentMapData[MAP_TYPE_SIX],
3891 nullptr,
3892 nullptr,
3893 nullptr);
3894 }
3895}
3896
3897void CServer::StopRecord(int ClientId)
3898{

Callers

nothing calls this directly

Calls 8

str_formatFunction · 0.85
StorageFunction · 0.85
ConfigFunction · 0.50
BaseNameMethod · 0.45
MapMethod · 0.45
AddressMethod · 0.45
StartMethod · 0.45
NetVersionMethod · 0.45

Tested by

no test coverage detected