diff options
Diffstat (limited to 'common/file.cpp')
-rw-r--r-- | common/file.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/file.cpp b/common/file.cpp index 6184004b35..0cec608d89 100644 --- a/common/file.cpp +++ b/common/file.cpp @@ -62,12 +62,12 @@ bool File::open(const String &filename, Archive &archive) { SeekableReadStream *stream = 0; if (archive.hasFile(filename)) { debug(3, "Opening hashed: %s", filename.c_str()); - stream = archive.openFile(filename); + stream = archive.createReadStreamForMember(filename); } else if (archive.hasFile(filename + ".")) { // WORKAROUND: Bug #1458388: "SIMON1: Game Detection fails" // sometimes instead of "GAMEPC" we get "GAMEPC." (note trailing dot) debug(3, "Opening hashed: %s.", filename.c_str()); - stream = archive.openFile(filename + "."); + stream = archive.createReadStreamForMember(filename + "."); } return open(stream, filename); |