diff options
-rw-r--r-- | engines/sword25/package/packagemanager.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/sword25/package/packagemanager.cpp b/engines/sword25/package/packagemanager.cpp index bd750d0880..4765d26ed4 100644 --- a/engines/sword25/package/packagemanager.cpp +++ b/engines/sword25/package/packagemanager.cpp @@ -215,6 +215,13 @@ Common::String PackageManager::getAbsolutePath(const Common::String &fileName) { } bool PackageManager::fileExists(const Common::String &fileName) { + // FIXME: The current Zip implementation doesn't support getting a folder entry, which is needed for detecting + // the English voick pack + if (fileName == "/speech/en") { + // To get around this, change to detecting one of the files in the folder + return getArchiveMember(normalizePath(fileName + "/APO0001.ogg", _currentDirectory)); + } + Common::ArchiveMemberPtr fileNode = getArchiveMember(normalizePath(fileName, _currentDirectory)); return fileNode; } |