- Implemented case insensitive file reading. Left old system as a fallback

in case some engine writer decide to do something unwise
- Removed used of ConfMan.getKey("path") in file-related cases, because
  now File class handles that
- Fixed bug in ScummEngine_v80he::o80_getFileSize() where path delimiters
  weren't translated

svn-id: r21443
This commit is contained in:
Eugene Sandulenko 2006-03-25 04:17:17 +00:00
parent 3331de7105
commit 22042bc637
9 changed files with 106 additions and 11 deletions

View file

@ -1595,7 +1595,7 @@ Engine *Engine_SCUMM_create(GameDetector *detector, OSystem *syst) {
// Instead, use the fs.h code to get a list of all files in that
// directory and simply check whether that filename is contained
// in it.
if (Common::File::exists(detectName, ConfMan.get("path").c_str())) {
if (Common::File::exists(detectName)) {
found = true;
break;
}
@ -1630,7 +1630,7 @@ Engine *Engine_SCUMM_create(GameDetector *detector, OSystem *syst) {
} else {
// Compute the MD5 of the file, and (if we succeeded) store a hex version
// of it in gameMD5 (useful to print it to the user in messages).
if (Common::md5_file(detectName, md5sum, ConfMan.get("path").c_str(), kMD5FileSizeLimit)) {
if (Common::md5_file(detectName, md5sum, NULL, kMD5FileSizeLimit)) {
for (int j = 0; j < 16; j++) {
sprintf(gameMD5 + j*2, "%02x", (int)md5sum[j]);
}