diff options
author | Eugene Sandulenko | 2010-08-16 15:16:46 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2010-10-12 22:49:08 +0000 |
commit | f95da5e3ee03ee61b1428c86dca4cc76f36c38bb (patch) | |
tree | 450a57ec6ecc71e15d073777effd96b51725762f /engines/sword25/package | |
parent | a21b148a9b0f6b6d26a7cec996163515efcb7ec3 (diff) | |
download | scummvm-rg350-f95da5e3ee03ee61b1428c86dca4cc76f36c38bb.tar.gz scummvm-rg350-f95da5e3ee03ee61b1428c86dca4cc76f36c38bb.tar.bz2 scummvm-rg350-f95da5e3ee03ee61b1428c86dca4cc76f36c38bb.zip |
SWORD25: Made game run with extracted data
svn-id: r53252
Diffstat (limited to 'engines/sword25/package')
-rw-r--r-- | engines/sword25/package/scummvmpackagemanager.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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; } } |