From af945ac7881ae7e414f004bd0e99e8c3b5d76be9 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Mon, 1 Dec 2008 20:35:36 +0000 Subject: Merged the tinsel 2 engine with tinsel 1. Both Discworld 1 and Discworld 2 should be completable svn-id: r35196 --- engines/tinsel/savescn.h | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) (limited to 'engines/tinsel/savescn.h') diff --git a/engines/tinsel/savescn.h b/engines/tinsel/savescn.h index a999c9bffa..79bf0ca2b2 100644 --- a/engines/tinsel/savescn.h +++ b/engines/tinsel/savescn.h @@ -33,13 +33,16 @@ #include "tinsel/dw.h" // SCNHANDLE #include "tinsel/rince.h" // SAVED_MOVER #include "tinsel/pcode.h" // INT_CONTEXT +#include "tinsel/play.h" +#include "tinsel/polygons.h" #include "tinsel/scroll.h" // SCROLLDATA +#include "tinsel/sysvar.h" namespace Tinsel { enum { SG_DESC_LEN = 40, // Max. saved game description length - MAX_SFILES = 30, + MAX_SAVED_FILES = 30, // FIXME: Save file names in ScummVM can be longer than 8.3, overflowing the // name field in savedFiles. Raising it to 256 as a preliminary fix. @@ -66,6 +69,16 @@ struct SAVED_DATA { bool SavedLoop; // } Midi bool SavedNoBlocking; SCROLLDATA SavedNoScrollData; + + // Tinsel 2 fields + Z_POSITIONS zPositions[NUM_ZPOSITIONS]; + byte savedActorZ[MAX_SAVED_ACTOR_Z]; + POLY_VOLATILE SavedPolygonStuff[MAX_POLY]; + uint32 SavedTune[3]; // Music + bool bTinselDim; + int SavedScrollFocus; + int SavedSystemVars[SV_TOPVALID]; + SOUNDREELS SavedSoundReels[MAX_SOUNDREELS]; }; @@ -74,8 +87,10 @@ enum SRSTATE { SR_DOSAVE, SR_DONESAVE, SR_ABORTED }; -void PleaseRestoreScene(bool bFade); -void PleaseSaveScene(CORO_PARAM); +void TinselRestoreScene(bool bFade); +void TinselSaveScene(CORO_PARAM); +void DoRestoreScene(SAVED_DATA *sd, bool bFadeOut); +void DoSaveScene(SAVED_DATA *sd); bool IsRestoringScene(); @@ -95,8 +110,8 @@ void ProcessSRQueue(void); void RequestSaveGame(char *name, char *desc, SAVED_DATA *sd, int *ssCount, SAVED_DATA *ssData); void RequestRestoreGame(int num, SAVED_DATA *sd, int *ssCount, SAVED_DATA *ssData); -void InitialiseSs(void); -void FreeSs(void); +void InitialiseSaveScenes(void); +void FreeSaveScenes(void); } // end of namespace Tinsel -- cgit v1.2.3