diff options
Diffstat (limited to 'engines/wintermute/base/file/base_package.cpp')
-rw-r--r-- | engines/wintermute/base/file/base_package.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/wintermute/base/file/base_package.cpp b/engines/wintermute/base/file/base_package.cpp index a0f56ddf83..427f2f46f8 100644 --- a/engines/wintermute/base/file/base_package.cpp +++ b/engines/wintermute/base/file/base_package.cpp @@ -86,12 +86,13 @@ bool BasePackage::read(Common::SeekableReadStream *file, uint32 offset, byte *bu //////////////////////////////////////////////////////////////////////////
Common::SeekableReadStream *BasePackage::getFilePointer() {
- Common::File *file = _fileManager->openPackage(_name);
+ Common::SeekableReadStream *stream = _fsnode.createReadStream();
+/* Common::File *file = _fileManager->openPackage(_name);
if (!file) {
_fileManager->requestCD(_cd, _name, "");
file = _fileManager->openPackage(_name);
- }
- return file;
+ }*/
+ return stream;
}
//////////////////////////////////////////////////////////////////////////
|