diff options
Diffstat (limited to 'engines/glk/frotz')
-rw-r--r-- | engines/glk/frotz/detection.cpp | 2 | ||||
-rw-r--r-- | engines/glk/frotz/frotz.cpp | 2 | ||||
-rw-r--r-- | engines/glk/frotz/frotz.h | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/engines/glk/frotz/detection.cpp b/engines/glk/frotz/detection.cpp index b1d751a313..6e1d23c963 100644 --- a/engines/glk/frotz/detection.cpp +++ b/engines/glk/frotz/detection.cpp @@ -122,6 +122,7 @@ bool FrotzMetaEngine::readSavegameHeader(Common::SeekableReadStream *stream, Glk if (stream->readUint32BE() != MKTAG('I', 'F', 'Z', 'S')) return false; + header._interpType = INTERPRETER_FROTZ; header._saveName = _("Unnamed savegame"); while (stream->pos() < stream->size()) { @@ -143,6 +144,7 @@ bool FrotzMetaEngine::readSavegameHeader(Common::SeekableReadStream *stream, Glk } } + stream->seek(0); return true; } diff --git a/engines/glk/frotz/frotz.cpp b/engines/glk/frotz/frotz.cpp index 421b7785a6..993c65e8e2 100644 --- a/engines/glk/frotz/frotz.cpp +++ b/engines/glk/frotz/frotz.cpp @@ -64,7 +64,7 @@ void Frotz::initialize() { z_restart(); } -Common::Error Frotz::saveGameData(strid_t file) { +Common::Error Frotz::saveGameData(strid_t file, const Common::String &desc) { #ifdef TODO long pc; zword addr; diff --git a/engines/glk/frotz/frotz.h b/engines/glk/frotz/frotz.h index 22604e59bd..28902c5665 100644 --- a/engines/glk/frotz/frotz.h +++ b/engines/glk/frotz/frotz.h @@ -71,7 +71,7 @@ public: /** * Save the game to the passed stream */ - virtual Common::Error saveGameData(strid_t file) override; + virtual Common::Error saveGameData(strid_t file, const Common::String &desc) override; }; extern Frotz *g_vm; |