From f95da5e3ee03ee61b1428c86dca4cc76f36c38bb Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Mon, 16 Aug 2010 15:16:46 +0000 Subject: SWORD25: Made game run with extracted data svn-id: r53252 --- engines/sword25/package/scummvmpackagemanager.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'engines/sword25/package/scummvmpackagemanager.cpp') diff --git a/engines/sword25/package/scummvmpackagemanager.cpp b/engines/sword25/package/scummvmpackagemanager.cpp index ffd833e9b9..f3cbc93b61 100644 --- a/engines/sword25/package/scummvmpackagemanager.cpp +++ b/engines/sword25/package/scummvmpackagemanager.cpp @@ -113,18 +113,19 @@ bool BS_ScummVMPackageManager::LoadPackage(const Common::String &fileName, const bool BS_ScummVMPackageManager::LoadDirectoryAsPackage(const Common::String &directoryName, const Common::String &mountPosition) { Common::FSNode directory(directoryName); - Common::Archive *folderArchive = new Common::FSDirectory(directory); + Common::Archive *folderArchive = new Common::FSDirectory(directory, 6); if (!directory.exists() || (folderArchive == NULL)) { BS_LOG_ERRORLN("Unable to mount directory \"%s\" to \"%s\".", directoryName.c_str(), mountPosition.c_str()); return false; } else { BS_LOGLN("Directory '%s' mounted as '%s'.", directoryName.c_str(), mountPosition.c_str()); - _archiveList.push_front(new ArchiveEntry(folderArchive, mountPosition)); Common::ArchiveMemberList files; folderArchive->listMembers(files); debug(0, "Capacity %d", files.size()); + _archiveList.push_front(new ArchiveEntry(folderArchive, mountPosition)); + return true; } } -- cgit v1.2.3