aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/sword25/package/scummvmpackagemanager.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/engines/sword25/package/scummvmpackagemanager.cpp b/engines/sword25/package/scummvmpackagemanager.cpp
index 43f16e1db6..1cc7a3c9d7 100644
--- a/engines/sword25/package/scummvmpackagemanager.cpp
+++ b/engines/sword25/package/scummvmpackagemanager.cpp
@@ -184,11 +184,9 @@ Common::FSNode BS_ScummVMPackageManager::GetFSNode(const Common::String &FileNam
if (iEntry == i->MountPath.end()) {
// Look into the archive for the desired file
-// Common::Archive *archiveFolder = i->Archive;
-
- // TODO: Loop through any folders in the archive
- for (; iPath != pathElements.end(); ++iPath) {
+ Common::Archive *archiveFolder = i->Archive;
+ if (archiveFolder->hasFile(FileName)) {
}
// Return the found node
@@ -211,7 +209,12 @@ bool BS_ScummVMPackageManager::LoadPackage(const Common::String &FileName, const
return false;
} else {
BS_LOGLN("Package '%s' mounted as '%s'.", FileName.c_str(), MountPosition.c_str());
+ Common::ArchiveMemberList files;
+ zipFile->listMembers(files);
+ debugC(0, "Capacity %d", files.size());
+
_archiveList.push_back(ArchiveEntry(zipFile, pathElements));
+
return true;
}
}