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

Method DemoRecorder_UpdateReplayRecorder

src/engine/client/client.cpp:4100–4113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4098}
4099
4100void CClient::DemoRecorder_UpdateReplayRecorder()
4101{
4102 if(!g_Config.m_ClReplays && DemoRecorder(RECORDER_REPLAYS)->IsRecording())
4103 {
4104 DemoRecorder(RECORDER_REPLAYS)->Stop(IDemoRecorder::EStopMode::REMOVE_FILE);
4105 }
4106
4107 if(g_Config.m_ClReplays && !DemoRecorder(RECORDER_REPLAYS)->IsRecording())
4108 {
4109 char aFilename[IO_MAX_PATH_LENGTH];
4110 str_format(aFilename, sizeof(aFilename), "replays/replay_tmp_%s", GameClient()->Map()->BaseName());
4111 DemoRecorder_Start(aFilename, true, RECORDER_REPLAYS);
4112 }
4113}
4114
4115void CClient::DemoRecorder_AddDemoMarker(int Recorder)
4116{

Callers 2

RenderSettingsDDNetMethod · 0.80
ConchainReplaysMethod · 0.80

Calls 5

str_formatFunction · 0.85
IsRecordingMethod · 0.45
StopMethod · 0.45
BaseNameMethod · 0.45
MapMethod · 0.45

Tested by

no test coverage detected