MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / endRecording

Function endRecording

TheForceEngine/TFE_Input/replay.cpp:933–959  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

931 }
932
933 void endRecording()
934 {
935 // Disable recording if it is not enabled for all when finished
936 if (!TFE_Settings::getGameSettings()->df_enableRecordingAll)
937 {
938 TFE_Settings::getGameSettings()->df_enableRecording = false;
939 }
940
941 setRecording(false);
942
943 // Seriaize the demo events
944 if (setupPath())
945 {
946 serializeDemo(&s_replayFile, true);
947 }
948
949 // Re-enable cutscenes while recording
950 enableCutscenes(JTRUE);
951
952 // Wipe any latent input
953 inputMapping_endFrame();
954
955 TFE_DarkForces::hud_sendTextMessage("Recording ended.", 0, false);
956
957 endCommonReplayStates();
958 TFE_System::logWrite(LOG_MSG, "Replay", "Writing demo to %s", s_replayPath);
959 }
960
961 void recordReplayTime(u64 startTime)
962 {

Callers 3

mission_exitLevelFunction · 0.85
mission_mainTaskFuncFunction · 0.85

Calls 9

getGameSettingsFunction · 0.85
setRecordingFunction · 0.85
setupPathFunction · 0.85
serializeDemoFunction · 0.85
enableCutscenesFunction · 0.85
inputMapping_endFrameFunction · 0.85
hud_sendTextMessageFunction · 0.85
endCommonReplayStatesFunction · 0.85
logWriteFunction · 0.85

Tested by

no test coverage detected