Fix demo recording support for CS:GO

The IDemoRecorder interface was heavily modified.
This commit is contained in:
Peace-Maker
2016-07-07 16:27:46 +02:00
parent 98657d2619
commit 737b2ab1d0
8 changed files with 51 additions and 22 deletions
+1 -5
View File
@@ -555,11 +555,7 @@ static cell_t Native_GetDemoFileName(IPluginContext *pContext, const cell_t *par
if (!hltvserver->GetDemoRecorder()->IsRecording())
return 0;
#if SOURCE_ENGINE == SE_CSGO
char *pDemoFile = (char *)hltvserver->GetDemoRecorder()->GetDemoFile() + 4;
#else
char *pDemoFile = (char *)hltvserver->GetDemoRecorder()->GetDemoFile();
#endif
char *pDemoFile = hltvserver->GetDemoFileName();
if (!pDemoFile)
return 0;