diff options
author | Fabio Battaglia | 2009-04-07 19:52:46 +0000 |
---|---|---|
committer | Fabio Battaglia | 2009-04-07 19:52:46 +0000 |
commit | dc9c538a62d64b40c3a39a673d2f680fa9422f41 (patch) | |
tree | da10a2ff6b6804e714fb124aac805445fe204058 /engines/sword2/sword2.h | |
parent | b80abe318d65679d5c0cd8a94a8c106534d240ea (diff) | |
download | scummvm-rg350-dc9c538a62d64b40c3a39a673d2f680fa9422f41.tar.gz scummvm-rg350-dc9c538a62d64b40c3a39a673d2f680fa9422f41.tar.bz2 scummvm-rg350-dc9c538a62d64b40c3a39a673d2f680fa9422f41.zip |
Sword2: PSX version support, and GMM loading/saving
svn-id: r39896
Diffstat (limited to 'engines/sword2/sword2.h')
-rw-r--r-- | engines/sword2/sword2.h | 17 |
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); |