Fix getting demo filename in csgo

This commit is contained in:
Peace-Maker 2016-04-28 15:43:38 +02:00
parent 857eb091bd
commit 30a83785bf
2 changed files with 8 additions and 0 deletions

View File

@ -464,7 +464,11 @@ void CForwardManager::CallOnStopRecording(IDemoRecorder *recorder)
if (!recorder->IsRecording())
return;
#if SOURCE_ENGINE == SE_CSGO
char *pDemoFile = (char *)recorder->GetDemoFile() + 4;
#else
char *pDemoFile = (char *)recorder->GetDemoFile();
#endif
HLTVServerWrapper *wrapper = g_HLTVServers.GetWrapper(recorder);
int instance = -1;

View File

@ -533,7 +533,11 @@ 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
if (!pDemoFile)
return 0;