diff options
Diffstat (limited to 'engines/glk/quetzal.h')
-rw-r--r-- | engines/glk/quetzal.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/engines/glk/quetzal.h b/engines/glk/quetzal.h index 2badf35bca..706fb9fe43 100644 --- a/engines/glk/quetzal.h +++ b/engines/glk/quetzal.h @@ -94,6 +94,11 @@ public: QuetzalReader() : _stream(nullptr) {} /** + * Clear + */ + void clear(); + + /** * Opens a Quetzal file for access */ bool open(Common::SeekableReadStream *stream, uint32 formType = ID_IFSF); @@ -124,11 +129,21 @@ class QuetzalWriter { * Constructor */ Chunk() : _id(0), _stream(DisposeAfterUse::YES) {} + + /** + * Constructor + */ + Chunk(uint32 id) : _id(id), _stream(DisposeAfterUse::YES) {} }; private: Common::Array<Chunk> _chunks; public: /** + * Clear + */ + void clear() { _chunks.clear(); } + + /** * Add a chunk */ Common::WriteStream &add(uint32 chunkId); |