say goodbye to your saves

This commit is contained in:
Nikolay Korolev 2020-05-24 14:01:01 +03:00
parent 9c93cc7d6f
commit e248cbcc7d

View File

@ -29,6 +29,7 @@
#include "Radar.h" #include "Radar.h"
#include "Restart.h" #include "Restart.h"
#include "Script.h" #include "Script.h"
#include "SetPieces.h"
#include "Stats.h" #include "Stats.h"
#include "Streaming.h" #include "Streaming.h"
#include "Timer.h" #include "Timer.h"
@ -206,6 +207,7 @@ GenericSave(int file)
WriteSaveDataBlock(cAudioScriptObject::SaveAllAudioScriptObjects); WriteSaveDataBlock(cAudioScriptObject::SaveAllAudioScriptObjects);
WriteSaveDataBlock(CWorld::Players[CWorld::PlayerInFocus].SavePlayerInfo); WriteSaveDataBlock(CWorld::Players[CWorld::PlayerInFocus].SavePlayerInfo);
WriteSaveDataBlock(CStats::SaveStats); WriteSaveDataBlock(CStats::SaveStats);
WriteSaveDataBlock(CSetPieces::Save);
WriteSaveDataBlock(CStreaming::MemoryCardSave); WriteSaveDataBlock(CStreaming::MemoryCardSave);
WriteSaveDataBlock(CPedType::Save); WriteSaveDataBlock(CPedType::Save);
@ -337,6 +339,8 @@ GenericLoad()
LoadSaveDataBlock(); LoadSaveDataBlock();
ReadDataFromBlock("Loading Stats \n", CStats::LoadStats); ReadDataFromBlock("Loading Stats \n", CStats::LoadStats);
LoadSaveDataBlock(); LoadSaveDataBlock();
ReadDataFromBlock("Loading Set Pieces \n", CSetPieces::Load);
LoadSaveDataBlock();
ReadDataFromBlock("Loading Streaming Stuff \n", CStreaming::MemoryCardLoad); ReadDataFromBlock("Loading Streaming Stuff \n", CStreaming::MemoryCardLoad);
LoadSaveDataBlock(); LoadSaveDataBlock();
ReadDataFromBlock("Loading PedType Stuff \n", CPedType::Load); ReadDataFromBlock("Loading PedType Stuff \n", CPedType::Load);