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

Method RaceRecord_Start

src/engine/client/client.cpp:5041–5059  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5039// DDRace
5040
5041void CClient::RaceRecord_Start(const char *pFilename)
5042{
5043 dbg_assert(State() == IClient::STATE_ONLINE, "Client must be online to record demo");
5044
5045 m_aDemoRecorder[RECORDER_RACE].Start(
5046 Storage(),
5047 m_pConsole,
5048 pFilename,
5049 IsSixup() ? GameClient()->NetVersion7() : GameClient()->NetVersion(),
5050 GameClient()->Map()->BaseName(),
5051 GameClient()->Map()->Sha256(),
5052 GameClient()->Map()->Crc(),
5053 "client",
5054 GameClient()->Map()->Size(),
5055 nullptr,
5056 GameClient()->Map()->File(),
5057 nullptr,
5058 nullptr);
5059}
5060
5061void CClient::RaceRecord_Stop()
5062{

Callers 1

OnNewSnapshotMethod · 0.80

Calls 10

StorageFunction · 0.85
NetVersion7Method · 0.80
StartMethod · 0.45
NetVersionMethod · 0.45
BaseNameMethod · 0.45
MapMethod · 0.45
Sha256Method · 0.45
CrcMethod · 0.45
SizeMethod · 0.45
FileMethod · 0.45

Tested by

no test coverage detected