diff options
Diffstat (limited to 'engines/kyra/kyra_v1.h')
-rw-r--r-- | engines/kyra/kyra_v1.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/engines/kyra/kyra_v1.h b/engines/kyra/kyra_v1.h index f4f845c5f7..438d625503 100644 --- a/engines/kyra/kyra_v1.h +++ b/engines/kyra/kyra_v1.h @@ -118,6 +118,8 @@ public: virtual void pauseEngineIntern(bool pause); + bool quit() const { return _quitFlag; } + uint8 game() const { return _flags.gameID; } const GameFlags &gameFlags() const { return _flags; } @@ -176,6 +178,9 @@ protected: virtual int go() = 0; virtual int init(); + // quit Handling + bool _quitFlag; + // intern Resource *_res; Sound *_sound; @@ -285,6 +290,8 @@ protected: bool originalSave; // savegame from original interpreter bool oldHeader; // old scummvm save header + + Graphics::Surface *thumbnail; }; enum kReadSaveHeaderError { @@ -294,10 +301,10 @@ protected: kRSHEIoError = 3 }; - static kReadSaveHeaderError readSaveHeader(Common::SeekableReadStream *file, SaveHeader &header); + static kReadSaveHeaderError readSaveHeader(Common::SeekableReadStream *file, bool loadThumbnail, SaveHeader &header); Common::SeekableReadStream *openSaveForReading(const char *filename, SaveHeader &header); - Common::WriteStream *openSaveForWriting(const char *filename, const char *saveName) const; + Common::WriteStream *openSaveForWriting(const char *filename, const char *saveName, const Graphics::Surface *thumbnail) const; }; } // End of namespace Kyra |