summaryrefslogtreecommitdiffstats
path: root/src/save/GenericGameStorage.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-05-24 13:01:01 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-05-24 13:01:01 +0200
commite248cbcc7d7edb2912dcf3c669c3868ae502d713 (patch)
treea5daf4537937f4186476b7d5d192e085e7e02c93 /src/save/GenericGameStorage.cpp
parentMerge remote-tracking branch 'upstream/miami' into miami (diff)
downloadre3-e248cbcc7d7edb2912dcf3c669c3868ae502d713.tar
re3-e248cbcc7d7edb2912dcf3c669c3868ae502d713.tar.gz
re3-e248cbcc7d7edb2912dcf3c669c3868ae502d713.tar.bz2
re3-e248cbcc7d7edb2912dcf3c669c3868ae502d713.tar.lz
re3-e248cbcc7d7edb2912dcf3c669c3868ae502d713.tar.xz
re3-e248cbcc7d7edb2912dcf3c669c3868ae502d713.tar.zst
re3-e248cbcc7d7edb2912dcf3c669c3868ae502d713.zip
Diffstat (limited to 'src/save/GenericGameStorage.cpp')
-rw-r--r--src/save/GenericGameStorage.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/save/GenericGameStorage.cpp b/src/save/GenericGameStorage.cpp
index 4eff4fb7..839ad8b9 100644
--- a/src/save/GenericGameStorage.cpp
+++ b/src/save/GenericGameStorage.cpp
@@ -29,6 +29,7 @@
#include "Radar.h"
#include "Restart.h"
#include "Script.h"
+#include "SetPieces.h"
#include "Stats.h"
#include "Streaming.h"
#include "Timer.h"
@@ -206,6 +207,7 @@ GenericSave(int file)
WriteSaveDataBlock(cAudioScriptObject::SaveAllAudioScriptObjects);
WriteSaveDataBlock(CWorld::Players[CWorld::PlayerInFocus].SavePlayerInfo);
WriteSaveDataBlock(CStats::SaveStats);
+ WriteSaveDataBlock(CSetPieces::Save);
WriteSaveDataBlock(CStreaming::MemoryCardSave);
WriteSaveDataBlock(CPedType::Save);
@@ -337,6 +339,8 @@ GenericLoad()
LoadSaveDataBlock();
ReadDataFromBlock("Loading Stats \n", CStats::LoadStats);
LoadSaveDataBlock();
+ ReadDataFromBlock("Loading Set Pieces \n", CSetPieces::Load);
+ LoadSaveDataBlock();
ReadDataFromBlock("Loading Streaming Stuff \n", CStreaming::MemoryCardLoad);
LoadSaveDataBlock();
ReadDataFromBlock("Loading PedType Stuff \n", CPedType::Load);