| 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 | { |
no test coverage detected