mission replay

This commit is contained in:
Nikolay Korolev 2020-05-27 00:25:12 +03:00
parent c83b351887
commit ec1d14971c
11 changed files with 325 additions and 5 deletions

View file

@ -41,7 +41,10 @@ C_PcSave::SaveSlot(int32 slot)
_psGetUserFilesFolder();
int file = CFileMgr::OpenFile(ValidSaveName, "wb");
if (file != 0) {
DoGameSpecificStuffBeforeSave();
#ifdef MISSION_REPLAY
if (!IsQuickSave)
#endif
DoGameSpecificStuffBeforeSave();
if (GenericSave(file)) {
if (!!CFileMgr::CloseFile(file))
nErrorCode = SAVESTATUS_ERR_SAVE_CLOSE;