From 5de2668939a6735da2b3438b7c586fc185791ef8 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Mon, 8 Nov 2010 00:18:34 +0000 Subject: SCI: Some changes regarding the string heap in saved games - Maintain the state of the string heap space in saved games - Merged SegManager::reconstructScripts() inside SegManager::saveLoadWithSerializer() - Disabled a now unnecessary script patch for the cipher puzzle in Castle of Dr. Brain, and performed some cleanup for another disabled patch - Removed direct access to the _baseObj variable of objects svn-id: r54133 --- engines/sci/engine/script.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'engines/sci/engine/script.h') diff --git a/engines/sci/engine/script.h b/engines/sci/engine/script.h index 04603ad829..bc263edc8c 100644 --- a/engines/sci/engine/script.h +++ b/engines/sci/engine/script.h @@ -243,6 +243,11 @@ public: */ byte *findBlockSCI0(int type, int startBlockIndex = -1); + /** + * Syncs the string heap of a script. Used when saving/loading. + */ + void syncStringHeap(Common::Serializer &ser); + private: /** * Processes a relocation block witin a script @@ -268,8 +273,6 @@ private: * @param segmentId The script's segment id */ void initialiseObjectsSci11(SegManager *segMan, SegmentId segmentId); - - void syncHeap(Common::Serializer &ser); }; } // End of namespace Sci -- cgit v1.2.3