diff options
author | Paul Gilbert | 2018-11-25 22:25:31 -0800 |
---|---|---|
committer | Paul Gilbert | 2018-12-08 19:05:59 -0800 |
commit | 33a23bca1c0363340d14ed4c84e558e82a9f245e (patch) | |
tree | 7a0bdfbbb546050cdbce67678a940bfb4bb8ba39 /engines/glk/frotz | |
parent | 6e6b285e83d44e0b35b1c8df3fd5fe325310810e (diff) | |
download | scummvm-rg350-33a23bca1c0363340d14ed4c84e558e82a9f245e.tar.gz scummvm-rg350-33a23bca1c0363340d14ed4c84e558e82a9f245e.tar.bz2 scummvm-rg350-33a23bca1c0363340d14ed4c84e558e82a9f245e.zip |
GLK: FROTZ: Further reading/writing setup for savegames using Quetzal
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; |