We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15834de commit fca78d4Copy full SHA for fca78d4
src/Modules/EngineDemoRecorder.cpp
@@ -37,6 +37,13 @@ int EngineDemoRecorder::GetTick() {
37
return this->GetRecordingTick(this->s_ClientDemoRecorder->ThisPtr());
38
}
39
40
+// Stop any running demo so the SAR checksum is written to the demo file
41
+ON_EVENT(SAR_UNLOAD) {
42
+ if (engine->demorecorder->isRecordingDemo) {
43
+ engine->demorecorder->Stop();
44
+ }
45
+}
46
+
47
std::string EngineDemoRecorder::GetDemoFilename() {
48
#ifdef _WIN32
49
# define PATH_SEP "\\"
0 commit comments