aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen/party.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2017-12-22 08:52:31 -0500
committerPaul Gilbert2017-12-22 08:52:31 -0500
commit49de1602b0ddc87cbbf26181f83b3d41b253da65 (patch)
tree27b4841baea104863d41da7c17048e950d21312d /engines/xeen/party.cpp
parentc8c804ccd78cbf7cbfb8934ed1dda1e5bf2f44f2 (diff)
downloadscummvm-rg350-49de1602b0ddc87cbbf26181f83b3d41b253da65.tar.gz
scummvm-rg350-49de1602b0ddc87cbbf26181f83b3d41b253da65.tar.bz2
scummvm-rg350-49de1602b0ddc87cbbf26181f83b3d41b253da65.zip
XEEN: Create a separate current state saver for each side
Previously, I only had a single savefile, which maintains the state of the party and mazes. But I've realised that I'll need a separate archive for each side of Xeen. I'm still not entirely happy with the cleanliness of the new structure, but it at least is now functionally separating the sides.
Diffstat (limited to 'engines/xeen/party.cpp')
-rw-r--r--engines/xeen/party.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/xeen/party.cpp b/engines/xeen/party.cpp
index abedaa46ed..0a2e5b9f82 100644
--- a/engines/xeen/party.cpp
+++ b/engines/xeen/party.cpp
@@ -206,11 +206,11 @@ void Party::synchronize(Common::Serializer &s) {
s.syncAsUint32LE(_bankGems);
s.syncAsUint32LE(_totalTime);
s.syncAsByte(_rested);
- SavesManager::syncBitFlags(s, &_gameFlags[0][0], &_gameFlags[0][256]);
- SavesManager::syncBitFlags(s, &_gameFlags[1][0], &_gameFlags[1][256]);
- SavesManager::syncBitFlags(s, &_worldFlags[0], &_worldFlags[128]);
- SavesManager::syncBitFlags(s, &_questFlags[0][0], &_questFlags[0][30]);
- SavesManager::syncBitFlags(s, &_questFlags[1][0], &_questFlags[1][30]);
+ File::syncBitFlags(s, &_gameFlags[0][0], &_gameFlags[0][256]);
+ File::syncBitFlags(s, &_gameFlags[1][0], &_gameFlags[1][256]);
+ File::syncBitFlags(s, &_worldFlags[0], &_worldFlags[128]);
+ File::syncBitFlags(s, &_questFlags[0][0], &_questFlags[0][30]);
+ File::syncBitFlags(s, &_questFlags[1][0], &_questFlags[1][30]);
for (int i = 0; i < 85; ++i)
s.syncAsByte(_questItems[i]);
@@ -225,7 +225,7 @@ void Party::synchronize(Common::Serializer &s) {
_blacksmithMisc[1][i].synchronize(s);
for (int i = 0; i < TOTAL_CHARACTERS; ++i)
- SavesManager::syncBitFlags(s, &_characterFlags[i][0], &_characterFlags[i][24]);
+ File::syncBitFlags(s, &_characterFlags[i][0], &_characterFlags[i][24]);
s.syncBytes(&dummy[0], 30);
}