diff options
-rw-r--r-- | common/file.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/common/file.cpp b/common/file.cpp index cbc2ca6e00..d943c3af2a 100644 --- a/common/file.cpp +++ b/common/file.cpp @@ -83,6 +83,15 @@ FILE *File::fopenNoCase(const char *filename, const char *directory, const char file = fopen(buf, mode); } + // + // Try again, with file name capitalized + // + if (!file) { + ptr = buf + offsetToFileName; + *ptr = toupper(*ptr); + file = fopen(buf, mode); + } + return file; } |