diff options
author | Einar Johan Trøan Sømåen | 2012-07-23 04:40:31 +0200 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2012-07-23 04:40:31 +0200 |
commit | 88fe4e3106e4eb7f3c179dfdb3b5a2f4fd3c7e2c (patch) | |
tree | 36043aa08b1ee10d46e59c2f9468947ba178a3fa /engines/wintermute/base/file | |
parent | 5bcc47646451c8c1cfe358ff69f5e7f77336fc91 (diff) | |
download | scummvm-rg350-88fe4e3106e4eb7f3c179dfdb3b5a2f4fd3c7e2c.tar.gz scummvm-rg350-88fe4e3106e4eb7f3c179dfdb3b5a2f4fd3c7e2c.tar.bz2 scummvm-rg350-88fe4e3106e4eb7f3c179dfdb3b5a2f4fd3c7e2c.zip |
WINTERMUTE: Handle the "language/" subdirectory separately for choice of language.
Since we don't have the same launcher the games have, we'll have to avoid including ALL
the datafiles, as the localization-dcps are usually intended to work alone. For now, it's hardcoded
to only load english.
Diffstat (limited to 'engines/wintermute/base/file')
-rw-r--r-- | engines/wintermute/base/file/base_package.cpp | 7 | ||||
-rw-r--r-- | engines/wintermute/base/file/base_package.h | 2 |
2 files changed, 6 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;
}
//////////////////////////////////////////////////////////////////////////
diff --git a/engines/wintermute/base/file/base_package.h b/engines/wintermute/base/file/base_package.h index af180ac7bf..673655a710 100644 --- a/engines/wintermute/base/file/base_package.h +++ b/engines/wintermute/base/file/base_package.h @@ -30,6 +30,7 @@ #define WINTERMUTE_BPACKAGE_H
#include "common/stream.h"
+#include "common/fs.h"
namespace Common {
class SeekableReadStream;
@@ -43,6 +44,7 @@ public: Common::SeekableReadStream *getFilePointer();
void closeFilePointer(Common::SeekableReadStream *&file);
+ Common::FSNode _fsnode;
bool _boundToExe;
byte _priority;
bool read(Common::SeekableReadStream *file, uint32 offset, byte *buffer, uint32 size);
|