diff --git a/forwards.cpp b/forwards.cpp index 4112f28..8e774c0 100644 --- a/forwards.cpp +++ b/forwards.cpp @@ -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; diff --git a/natives.cpp b/natives.cpp index f1b35db..140d759 100644 --- a/natives.cpp +++ b/natives.cpp @@ -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;