diff options
author | Einar Johan Trøan Sømåen | 2012-05-09 15:16:18 +0200 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2012-06-02 12:42:08 +0200 |
commit | 2f7fe9f443464f3b0fc93966753266be5ac8741f (patch) | |
tree | a95114845bd0629644db69b5f9709a1f8a8dbf71 /engines | |
parent | 466596eae4e6e241322ad690eed2d3acc4aef084 (diff) | |
download | scummvm-rg350-2f7fe9f443464f3b0fc93966753266be5ac8741f.tar.gz scummvm-rg350-2f7fe9f443464f3b0fc93966753266be5ac8741f.tar.bz2 scummvm-rg350-2f7fe9f443464f3b0fc93966753266be5ac8741f.zip |
WINTERMUTE: Make BPkgFiles use SubStreams for non-compressed files too.
Since we already do the assumption that we don't need to do the same package-seeks
for compressed files, this assumption needs to be carried for uncompressed files too.
Diffstat (limited to 'engines')
-rw-r--r-- | engines/wintermute/BPkgFile.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/wintermute/BPkgFile.cpp b/engines/wintermute/BPkgFile.cpp index 441a990ecb..783011bbb3 100644 --- a/engines/wintermute/BPkgFile.cpp +++ b/engines/wintermute/BPkgFile.cpp @@ -79,6 +79,8 @@ HRESULT CBPkgFile::Open(Common::String Filename) { // TODO: Really, most of this logic might be doable directly in the fileEntry?
// But for now, this should get us rolling atleast.
_file = wrapCompressedReadStream(new Common::SeekableSubReadStream(_file, _fileEntry->_offset, _fileEntry->_offset + _fileEntry->_length, DisposeAfterUse::YES));
+ } else {
+ _file = new Common::SeekableSubReadStream(_file, _fileEntry->_offset, _fileEntry->_offset + _fileEntry->_length, DisposeAfterUse::YES);
}
SeekToPos(0);
|