aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm
diff options
context:
space:
mode:
authorTravis Howell2006-05-08 13:10:49 +0000
committerTravis Howell2006-05-08 13:10:49 +0000
commit3f9395831cba0024e57aa19d8222845ae7778a5d (patch)
treef93c5d8f62bd805773f1a205111fc310e0caf21d /engines/scumm
parentca513f7e66762235903dd4f7f0f2a75acbb6b5bd (diff)
downloadscummvm-rg350-3f9395831cba0024e57aa19d8222845ae7778a5d.tar.gz
scummvm-rg350-3f9395831cba0024e57aa19d8222845ae7778a5d.tar.bz2
scummvm-rg350-3f9395831cba0024e57aa19d8222845ae7778a5d.zip
Fix regression in lost, the middle directories were removed
svn-id: r22388
Diffstat (limited to 'engines/scumm')
-rw-r--r--engines/scumm/he/script_v60he.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/engines/scumm/he/script_v60he.cpp b/engines/scumm/he/script_v60he.cpp
index 614a337fc4..9dcf12d295 100644
--- a/engines/scumm/he/script_v60he.cpp
+++ b/engines/scumm/he/script_v60he.cpp
@@ -422,13 +422,12 @@ int ScummEngine_v60he::convertFilePath(byte *dst) {
// Strip path
int r = 0;
- if (dst[0] == '.' && dst[1] == '/') {
+ if (dst[0] == '.' && dst[1] == '/') { // './'
r = 2;
- } else if (dst[0] == 'c' && dst[1] == ':') {
- for (r = len; r != 0; r--) {
- if (dst[r - 1] == '/')
- break;
- }
+ } else if (dst[0] == 'c' && dst[1] == ':' && dst[3] == 'h') { // 'c:/hegames/'
+ r = 11;
+ } else if (dst[0] == 'c' && dst[1] == ':' && dst[3] == 'w') { // 'c:/windows/'
+ r = 11;
}
debug(1, "convertFilePath: converted filePath is %s", dst + r);