aboutsummaryrefslogtreecommitdiff
path: root/engines/sword2/sword2.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sword2/sword2.h')
-rw-r--r--engines/sword2/sword2.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/engines/sword2/sword2.h b/engines/sword2/sword2.h
index e262a35f09..7168e7ae47 100644
--- a/engines/sword2/sword2.h
+++ b/engines/sword2/sword2.h
@@ -120,8 +120,17 @@ private:
bool _useSubtitles;
int _gameSpeed;
+ // Used to trigger GMM Loading
+ int _gmmLoadSlot;
+
StartUp _startList[MAX_starts];
+ // We need these to fetch data from SCREENS.CLU, which is
+ // a resource file with custom format keeping background and
+ // parallax data (which is removed from multiscreen files).
+ byte *fetchPsxBackground(uint32 location);
+ byte *fetchPsxParallax(uint32 location, uint8 level); // level: 0 -> bg, 1 -> fg
+
// Original game platform (PC/PSX)
static Common::Platform _platform;
@@ -150,6 +159,12 @@ public:
bool getSubtitles() { return _useSubtitles; }
void setSubtitles(bool b) { _useSubtitles = b; }
+ // GMM Loading/Saving
+ Common::Error saveGameState(int slot, const char *desc);
+ bool canSaveGameStateCurrently();
+ Common::Error loadGameState(int slot);
+ bool canLoadGameStateCurrently();
+
uint32 _features;
MemoryManager *_memory;
@@ -203,7 +218,7 @@ public:
byte *fetchTextLine(byte *file, uint32 text_line);
bool checkTextLine(byte *file, uint32 text_line);
byte *fetchPaletteMatchTable(byte *screenFile);
-
+
uint32 saveGame(uint16 slotNo, byte *description);
uint32 restoreGame(uint16 slotNo);
uint32 getSaveDescription(uint16 slotNo, byte *description);