[Scummvm-git-logs] scummvm master -> 010404a7f38db9ce92be4314444684eb19031f5d

sev- sev at scummvm.org
Wed Oct 7 09:51:31 UTC 2020


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
010404a7f3 SWORD25: Process Windows paths in extracted version


Commit: 010404a7f38db9ce92be4314444684eb19031f5d
    https://github.com/scummvm/scummvm/commit/010404a7f38db9ce92be4314444684eb19031f5d
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2020-10-07T11:51:05+02:00

Commit Message:
SWORD25: Process Windows paths in extracted version

Changed paths:
    engines/sword25/package/packagemanager.cpp


diff --git a/engines/sword25/package/packagemanager.cpp b/engines/sword25/package/packagemanager.cpp
index 0c1f6d4a51..412df8d805 100644
--- a/engines/sword25/package/packagemanager.cpp
+++ b/engines/sword25/package/packagemanager.cpp
@@ -287,6 +287,11 @@ int PackageManager::doSearch(Common::ArchiveMemberList &list, const Common::Stri
 
 				name = node->getPath().substr(_directoryName.size());
 
+				for (uint c = 0; c < name.size(); c++) {
+					if (name[c] == '\\')
+						name.replace(c, 1, "/");
+				}
+
 				matchType = (((typeFilter & PackageManager::FT_DIRECTORY) && node->isDirectory()) ||
 					((typeFilter & PackageManager::FT_FILE) && !node->isDirectory()));
 			} else {




More information about the Scummvm-git-logs mailing list