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

Function endReplay

TheForceEngine/TFE_Input/replay.cpp:1142–1170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1140 }
1141
1142 void endReplay()
1143 {
1144 replayInitialized = false;
1145 replayFilehandler = -1;
1146 setDemoPlayback(false);
1147
1148 restoreAgent();
1149 restoreGameSettings();
1150 restoreInputs();
1151
1152 enableCutscenes(cutscenesEnabled);
1153 endCommonReplayStates();
1154
1155 TFE_System::logWrite(LOG_MSG, "Replay", "Finished playing back demo...");
1156
1157 if (TFE_Settings::getTempSettings()->exit_after_replay)
1158 {
1159 // Reset the recording settings
1160 TFE_Settings::getGameSettings()->df_enableRecordingAll = alwaysRecord;
1161 TFE_FrontEndUI::setState(APP_STATE_QUIT);
1162 }
1163 else
1164 {
1165 // End mission and go back to Menu after replay.
1166 TFE_DarkForces::mission_exitLevel();
1167 task_freeAll();
1168 TFE_FrontEndUI::exitToMenu();
1169 }
1170 }
1171}

Callers 2

mission_exitLevelFunction · 0.85

Calls 13

setDemoPlaybackFunction · 0.85
restoreAgentFunction · 0.85
restoreGameSettingsFunction · 0.85
restoreInputsFunction · 0.85
enableCutscenesFunction · 0.85
endCommonReplayStatesFunction · 0.85
logWriteFunction · 0.85
getTempSettingsFunction · 0.85
getGameSettingsFunction · 0.85
setStateFunction · 0.85
mission_exitLevelFunction · 0.85
task_freeAllFunction · 0.85

Tested by

no test coverage detected