diff options
Diffstat (limited to 'engines/glk/frotz')
-rw-r--r-- | engines/glk/frotz/detection.cpp | 35 | ||||
-rw-r--r-- | engines/glk/frotz/detection.h | 5 |
2 files changed, 0 insertions, 40 deletions
diff --git a/engines/glk/frotz/detection.cpp b/engines/glk/frotz/detection.cpp index b9d5e1062b..0c8a92b9ab 100644 --- a/engines/glk/frotz/detection.cpp +++ b/engines/glk/frotz/detection.cpp @@ -159,40 +159,5 @@ void FrotzMetaEngine::detectClashes(Common::StringMap &map) { } } -bool FrotzMetaEngine::readSavegameHeader(Common::SeekableReadStream *stream, Glk::SavegameHeader &header) { - stream->seek(0); - if (stream->readUint32BE() != ID_FORM) - return false; - stream->readUint32BE(); - if (stream->readUint32BE() != ID_IFZS) - return false; - - header._interpType = INTERPRETER_FROTZ; - header._saveName = _("Unnamed savegame"); - - while (stream->pos() < stream->size()) { - uint type = stream->readUint32BE(); - size_t len = stream->readUint32BE(); - - if (type == ID_ANNO) { - // Read savegame name from the annotation chunk - char *buffer = new char[len + 1]; - stream->read(buffer, len); - buffer[len] = '\0'; - header._saveName = Common::String(buffer); - break; - - } else { - if (len & 1) - // Length must be even - ++len; - stream->skip(len); - } - } - - stream->seek(0); - return true; -} - } // End of namespace Frotz } // End of namespace Glk diff --git a/engines/glk/frotz/detection.h b/engines/glk/frotz/detection.h index 7943385aa9..6e1643302c 100644 --- a/engines/glk/frotz/detection.h +++ b/engines/glk/frotz/detection.h @@ -60,11 +60,6 @@ public: * Check for game Id clashes with other sub-engines */ static void detectClashes(Common::StringMap &map); - - /** - * Check a passed stream for a Quetzal save, and if so, get header information - */ - static bool readSavegameHeader(Common::SeekableReadStream *stream, Glk::SavegameHeader &header); }; } // End of namespace Frotz |