aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/streams.h
diff options
context:
space:
mode:
authorPaul Gilbert2018-11-26 22:18:45 -0800
committerPaul Gilbert2018-12-08 19:05:59 -0800
commit2331a0e9fb3dfe335c15c470d3e7da49cc7ac5f7 (patch)
tree3b895569c5b10fff83dcdb0a96e1f5a545f0aa1e /engines/glk/streams.h
parent33a23bca1c0363340d14ed4c84e558e82a9f245e (diff)
downloadscummvm-rg350-2331a0e9fb3dfe335c15c470d3e7da49cc7ac5f7.tar.gz
scummvm-rg350-2331a0e9fb3dfe335c15c470d3e7da49cc7ac5f7.tar.bz2
scummvm-rg350-2331a0e9fb3dfe335c15c470d3e7da49cc7ac5f7.zip
GLK: FROTZ: Quetzal saving and loading now works
Diffstat (limited to 'engines/glk/streams.h')
-rw-r--r--engines/glk/streams.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/engines/glk/streams.h b/engines/glk/streams.h
index 3150ce9c38..0b82b36a26 100644
--- a/engines/glk/streams.h
+++ b/engines/glk/streams.h
@@ -283,6 +283,16 @@ public:
* Set the reverse video style
*/
virtual void setReverseVideo(bool reverse);
+
+ /**
+ * Cast a stream to a ScummVM write stream
+ */
+ virtual operator Common::WriteStream *() const { return nullptr; }
+
+ /**
+ * Cast a stream to a ScummVM read stream
+ */
+ virtual operator Common::SeekableReadStream *() const { return nullptr; }
};
typedef Stream *strid_t;
@@ -528,6 +538,16 @@ public:
* Get a unicode line
*/
virtual glui32 getLineUni(glui32 *ubuf, glui32 len) override;
+
+ /**
+ * Cast a stream to a ScummVM write stream
+ */
+ virtual operator Common::WriteStream *() const override { return _outFile; }
+
+ /**
+ * Cast a stream to a ScummVM read stream
+ */
+ virtual operator Common::SeekableReadStream *() const override { return _inStream; }
};
/**