aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/tinsel/drives.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/engines/tinsel/drives.cpp b/engines/tinsel/drives.cpp
index 53cc59e260..6e30caf006 100644
--- a/engines/tinsel/drives.cpp
+++ b/engines/tinsel/drives.cpp
@@ -162,14 +162,10 @@ TinselFile::~TinselFile() {
}
bool TinselFile::openInternal(const Common::String &filename) {
- const Common::FSNode gameDataDir(ConfMan.get("path"));
- const Common::FSNode fsNode = gameDataDir.getChild(filename);
- Common::SeekableReadStream *stream = fsNode.createReadStream();
- if (!stream)
- return false;
-
- _stream = new Common::SeekableSubReadStream(stream, 0, stream->size(), DisposeAfterUse::YES);
- return true;
+ _stream = SearchMan.createReadStreamForMember(filename);
+ if (!_stream)
+ _stream = SearchMan.createReadStreamForMember(filename + ".");
+ return _stream != 0;
}
bool TinselFile::open(const Common::String &filename) {