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"
This commit is contained in:
Eugene Sandulenko 2020-08-05 14:33:44 +02:00
parent 800b611667
commit 658a0043f5

View File

@ -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];