diff options
Diffstat (limited to 'engines/gargoyle/streams.h')
-rw-r--r-- | engines/gargoyle/streams.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/engines/gargoyle/streams.h b/engines/gargoyle/streams.h index dad67816e3..16f63dbf0b 100644 --- a/engines/gargoyle/streams.h +++ b/engines/gargoyle/streams.h @@ -101,6 +101,13 @@ struct FileReference { FileReference() : _rock(0), _slotNumber(-1), _fileType(fileusage_Data), _textMode(false) {} /** + * Constructor + */ + FileReference(int slot, const Common::String &desc, glui32 usage, glui32 rock = 0) : + _rock(rock), _slotNumber(slot), _description(desc), + _fileType((FileUsage)(usage & fileusage_TypeMask)), _textMode(usage & fileusage_TextMode) {} + + /** * Get savegame filename */ const Common::String getSaveName() const; @@ -217,11 +224,21 @@ public: virtual glsi32 getCharUni() { return -1; } /** + * Get a buffer + */ + virtual glui32 getBuffer(char *buf, glui32 len) { return 0; } + + /** * Get a unicode buffer */ virtual glui32 getBufferUni(glui32 *buf, glui32 len) { return 0; } /** + * Get a line + */ + virtual glui32 getLine(char *buf, glui32 len) { return 0; } + + /** * Get a unicode line */ virtual glui32 getLineUni(glui32 *ubuf, glui32 len) { return 0; } @@ -330,11 +347,21 @@ public: virtual glsi32 getCharUni() override; /** + * Get a buffer + */ + virtual glui32 getBuffer(char *buf, glui32 len) override; + + /** * Get a unicode buffer */ virtual glui32 getBufferUni(glui32 *buf, glui32 len) override; /** + * Get a line + */ + virtual glui32 getLine(char *buf, glui32 len) override; + + /** * Get a unicode line */ virtual glui32 getLineUni(glui32 *ubuf, glui32 len) override; @@ -422,11 +449,21 @@ public: virtual glsi32 getCharUni() override; /** + * Get a buffer + */ + virtual glui32 getBuffer(char *buf, glui32 len) override; + + /** * Get a unicode buffer */ virtual glui32 getBufferUni(glui32 *buf, glui32 len) override; /** + * Get a line + */ + virtual glui32 getLine(char *buf, glui32 len) override; + + /** * Get a unicode line */ virtual glui32 getLineUni(glui32 *ubuf, glui32 len) override; |