Skip to content

Commit

Permalink
Remove demo recording
Browse files Browse the repository at this point in the history
  • Loading branch information
ChillerDragon committed Sep 15, 2019
1 parent 1fea161 commit fc0bd8b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/engine/client/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3172,6 +3172,8 @@ void CClient::DemoRecorder_Start(const char *pFilename, bool WithTimestamp, int

void CClient::DemoRecorder_HandleAutoStart()
{
dbg_msg("auto_demo", "chillerbot-ng does not support demo recording");
/*
if(g_Config.m_ClAutoDemoRecord)
{
DemoRecorder_Stop(RECORDER_AUTO);
Expand All @@ -3182,9 +3184,10 @@ void CClient::DemoRecorder_HandleAutoStart()
{
// clean up auto recorded demos
CFileCollection AutoDemos;
AutoDemos.Init(Storage(), "demos/auto", "" /* empty for wild card */, ".demo", g_Config.m_ClAutoDemoMax);
AutoDemos.Init(Storage(), "demos/auto", "" / * empty for wild card * /, ".demo", g_Config.m_ClAutoDemoMax);
}
}
*/
}

void CClient::DemoRecorder_Stop(int Recorder)
Expand Down
5 changes: 5 additions & 0 deletions src/engine/shared/demo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ CDemoRecorder::CDemoRecorder(class CSnapshotDelta *pSnapshotDelta, bool NoMapDat
// Record
int CDemoRecorder::Start(class IStorage *pStorage, class IConsole *pConsole, const char *pFilename, const char *pNetVersion, const char *pMap, SHA256_DIGEST Sha256, unsigned Crc, const char *pType, unsigned int MapSize, unsigned char *pMapData, IOHANDLE MapFile, DEMOFUNC_FILTER pfnFilter, void *pUser)
{
m_pConsole->Print(IConsole::OUTPUT_LEVEL_STANDARD, "demo_recorder", "chillerbot-ng does not support demo recording");
return -1;
/*
m_pfnFilter = pfnFilter;
m_pUser = pUser;
Expand Down Expand Up @@ -151,6 +155,7 @@ int CDemoRecorder::Start(class IStorage *pStorage, class IConsole *pConsole, con
m_File = DemoFile;
return 0;
*/
}

/*
Expand Down

0 comments on commit fc0bd8b

Please sign in to comment.