mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-04 16:26:53 +00:00
Extend fopenNoCase with probe of capitalized files, such as Cave.mid.
svn-id: r15812
This commit is contained in:
parent
ddda67753e
commit
0b3949389e
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user