diff options
author | Paul Gilbert | 2019-05-05 09:58:14 +1000 |
---|---|---|
committer | Filippos Karapetis | 2019-05-12 11:44:15 +0300 |
commit | e2f68e24035245ec0f453c49b28207d32def4789 (patch) | |
tree | 49b75fada577f7153918c4ca54db069a3e7a4f01 /common/stream.cpp | |
parent | b821e8fce47d1dbc8c94448fc3727e58814237a3 (diff) | |
download | scummvm-rg350-e2f68e24035245ec0f453c49b28207d32def4789.tar.gz scummvm-rg350-e2f68e24035245ec0f453c49b28207d32def4789.tar.bz2 scummvm-rg350-e2f68e24035245ec0f453c49b28207d32def4789.zip |
COMMON: Fix seek return values, memory stream use in create_titanic
Diffstat (limited to 'common/stream.cpp')
-rw-r--r-- | common/stream.cpp | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/common/stream.cpp b/common/stream.cpp index 5c9b571af4..9bd09386d9 100644 --- a/common/stream.cpp +++ b/common/stream.cpp @@ -102,31 +102,6 @@ bool MemoryReadStream::seek(int32 offs, int whence) { return true; // FIXME: STREAM REWRITE } -bool MemoryWriteStreamDynamic::seek(int32 offs, int whence) { - // Pre-Condition - assert(_pos <= _size); - switch (whence) { - case SEEK_END: - // SEEK_END works just like SEEK_SET, only 'reversed', - // i.e. from the end. - offs = _size + offs; - // Fall through - case SEEK_SET: - _ptr = _data + offs; - _pos = offs; - break; - - case SEEK_CUR: - _ptr += offs; - _pos += offs; - break; - } - // Post-Condition - assert(_pos <= _size); - - return true; // FIXME: STREAM REWRITE -} - #pragma mark - enum { |