Extend fopenNoCase with probe of capitalized files, such as Cave.mid.

svn-id: r15812
This commit is contained in:
Eugene Sandulenko 2004-11-14 21:10:50 +00:00
parent ddda67753e
commit 0b3949389e

View File

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