diff options
| author | Travis Howell | 2006-06-09 08:06:38 +0000 | 
|---|---|---|
| committer | Travis Howell | 2006-06-09 08:06:38 +0000 | 
| commit | f571c471cc08f73b8dfbbabf93738870f600e8b2 (patch) | |
| tree | 1f4fa1da4454499e4abd9151bb38dbcfefdeb10a /engines/scumm/he/script_v60he.cpp | |
| parent | 276b4eef7cf6261a3f8551a019f0bc5eb223d88d (diff) | |
| download | scummvm-rg350-f571c471cc08f73b8dfbbabf93738870f600e8b2.tar.gz scummvm-rg350-f571c471cc08f73b8dfbbabf93738870f600e8b2.tar.bz2 scummvm-rg350-f571c471cc08f73b8dfbbabf93738870f600e8b2.zip  | |
Add DOS and Macintosh versions of Putt-Putt & Fatty Bear's Activity Pack
svn-id: r22991
Diffstat (limited to 'engines/scumm/he/script_v60he.cpp')
| -rw-r--r-- | engines/scumm/he/script_v60he.cpp | 9 | 
1 files changed, 3 insertions, 6 deletions
diff --git a/engines/scumm/he/script_v60he.cpp b/engines/scumm/he/script_v60he.cpp index 9dcf12d295..a70a50b0a5 100644 --- a/engines/scumm/he/script_v60he.cpp +++ b/engines/scumm/he/script_v60he.cpp @@ -412,6 +412,7 @@ int ScummEngine_v60he::convertFilePath(byte *dst) {  			else  				dst[j++] = dst[i];  		} +		dst[j] = 0;  	} else {  		// Switch all \ to / for portablity  		for (int i = 0; i < len; i++) { @@ -984,12 +985,8 @@ void ScummEngine_v60he::o60_openFile() {  	len = resStrLen(_scriptPointer);  	_scriptPointer += len + 1; -	for (r = strlen((char*)buffer); r != 0; r--) { -		if (buffer[r - 1] == '\\') -			break; -	} -	 -	filename = (char *)buffer + r; +	filename = (char *)buffer + convertFilePath(buffer); +	debug(1, "Final filename to %s", filename);  	mode = pop();  	slot = -1;  | 
