mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-31 07:53:36 +00:00
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:
parent
800b611667
commit
658a0043f5
@ -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];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user