aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/he/script_v80he.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2006-03-25 04:17:17 +0000
committerEugene Sandulenko2006-03-25 04:17:17 +0000
commit22042bc63741321557b401833adf9d2ccf10eb3b (patch)
tree5122e534a141c37092e8f583bb33669c49e434e8 /engines/scumm/he/script_v80he.cpp
parent3331de7105fe8ece9268ad0bc9123dba01a33a2b (diff)
downloadscummvm-rg350-22042bc63741321557b401833adf9d2ccf10eb3b.tar.gz
scummvm-rg350-22042bc63741321557b401833adf9d2ccf10eb3b.tar.bz2
scummvm-rg350-22042bc63741321557b401833adf9d2ccf10eb3b.zip
- 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
Diffstat (limited to 'engines/scumm/he/script_v80he.cpp')
-rw-r--r--engines/scumm/he/script_v80he.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/scumm/he/script_v80he.cpp b/engines/scumm/he/script_v80he.cpp
index 6bb48c7ab1..c4de1bc7b6 100644
--- a/engines/scumm/he/script_v80he.cpp
+++ b/engines/scumm/he/script_v80he.cpp
@@ -399,9 +399,15 @@ void ScummEngine_v80he::o80_createSound() {
void ScummEngine_v80he::o80_getFileSize() {
byte filename[256];
+ uint i;
copyScriptString(filename, sizeof(filename));
+ for (i = 0; i < strlen((const char *)filename); i++) {
+ if (filename[i] == '\\')
+ filename[i] = '/';
+ }
+
Common::File f;
if (!f.open((char *)filename)) {
push(-1);