SWORD25: Added a hack to allow the new English voice pack to be detected

svn-id: r53937
This commit is contained in:
Paul Gilbert 2010-10-30 04:30:42 +00:00
parent a487da3c19
commit 919d79f091

View File

@ -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;
}