[Scummvm-git-logs] scummvm master -> 658a0043f52bf43d6f7ecedb3e3d821e77370944
sev-
sev at scummvm.org
Wed Aug 5 12:34:47 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:
658a0043f5 DIRECTOR: Removed lowercase extension from the extension list
Commit: 658a0043f52bf43d6f7ecedb3e3d821e77370944
https://github.com/scummvm/scummvm/commit/658a0043f52bf43d6f7ecedb3e3d821e77370944
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2020-08-05T14:33:44+02:00
Commit Message:
DIRECTOR: Removed lowercase extension from the extension list
ScummVM emulates case-insensitive file system, thus there is no sense
to test for ".Dir" when there is a test for ".DIR"
Changed paths:
engines/director/util.cpp
diff --git a/engines/director/util.cpp b/engines/director/util.cpp
index 2106f6ca2a..a6837e7ae5 100644
--- a/engines/director/util.cpp
+++ b/engines/director/util.cpp
@@ -420,7 +420,7 @@ Common::String pathMakeRelative(Common::String path, bool recursive, bool addext
}
Common::String testExtensions(Common::String component, Common::String initialPath, Common::String convPath) {
- const char *exts[] = { ".MMM", ".DIR", ".Dir", ".DXR", ".Dxr", 0 };
+ const char *exts[] = { ".MMM", ".DIR", ".DXR", 0 };
for (int i = 0; exts[i]; ++i) {
Common::String newpath = convPath + (strcmp(exts[i], ".MMM") == 0 ? convertMacFilename(component.c_str()) : component.c_str()) + exts[i];
More information about the Scummvm-git-logs
mailing list