aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Howell2009-08-24 10:06:38 +0000
committerTravis Howell2009-08-24 10:06:38 +0000
commitcba88415bbd3fbb6d66e54b36379a38a7c4f3eea (patch)
tree8ac58458bf731868d6b3b0a97b59aa4976c3a9eb
parent1793787bb9b6d604b2f8d03d6f8187fb753e5efa (diff)
downloadscummvm-rg350-cba88415bbd3fbb6d66e54b36379a38a7c4f3eea.tar.gz
scummvm-rg350-cba88415bbd3fbb6d66e54b36379a38a7c4f3eea.tar.bz2
scummvm-rg350-cba88415bbd3fbb6d66e54b36379a38a7c4f3eea.zip
Fix bug #2843387 - PUTTPUTT/FATTYBEAR: Macintosh versions assert on startup.
svn-id: r43687
-rw-r--r--engines/scumm/he/script_v60he.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/scumm/he/script_v60he.cpp b/engines/scumm/he/script_v60he.cpp
index 92848ce981..4c01d3b15c 100644
--- a/engines/scumm/he/script_v60he.cpp
+++ b/engines/scumm/he/script_v60he.cpp
@@ -98,6 +98,13 @@ int ScummEngine_v60he::convertFilePath(byte *dst, int dstSize) {
int len = resStrLen(dst);
if (_game.platform == Common::kPlatformMacintosh) {
+ // Remove : prefix in HE71 games
+ if (dst[0] == ':') {
+ len -= 1;
+ memmove(dst, dst + 1, len);
+ dst[len] = 0;
+ }
+
// Switch all : to / for portablity
for (int i = 0; i < len; i++) {
if (dst[i] == ':')