]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Remove the forced lower-casing in listdirectory on Windows, as it breaks
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 29 Nov 2017 02:50:40 +0000 (02:50 +0000)
committerRudolf Polzer <divVerent@xonotic.org>
Tue, 3 Apr 2018 13:36:13 +0000 (06:36 -0700)
the caseinsensitive=false case.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12343 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=3fba31505b873b637e5d96e48a1bb6ad9b2bef41

filematch.c

index 59e626d2a9ee9d77c522aae2744382441ce44d25..95d0e650245a137f889d3fc72ea517dc12efb6b7 100644 (file)
@@ -179,12 +179,6 @@ void listdirectory(stringlist_t *list, const char *basepath, const char *path)
                adddirentry(list, path, n_file.cFileName);
        } while (FindNextFile(hFile, &n_file) != 0);
        FindClose(hFile);
-
-       // convert names to lowercase because windows does not care, but pattern matching code often does
-       for (i = 0;i < list->numstrings;i++)
-               for (c = list->strings[i];*c;c++)
-                       if (*c >= 'A' && *c <= 'Z')
-                               *c += 'a' - 'A';
 }
 #else
 void listdirectory(stringlist_t *list, const char *basepath, const char *path)