aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMatthew Hoops2011-07-02 14:55:05 -0400
committerMatthew Hoops2011-07-02 14:55:05 -0400
commitf7efd3fe2a881c13b7b625ebf3c75a7639d0f582 (patch)
treeed6e19ad37f12d3c389183a9b6b8cea2047252f6 /engines
parent58356843ee0f7007059f5b032b010625b69aedde (diff)
downloadscummvm-rg350-f7efd3fe2a881c13b7b625ebf3c75a7639d0f582.tar.gz
scummvm-rg350-f7efd3fe2a881c13b7b625ebf3c75a7639d0f582.tar.bz2
scummvm-rg350-f7efd3fe2a881c13b7b625ebf3c75a7639d0f582.zip
SCUMM: Remove backslashes from Mac file names too
Fixes Smacker videos in Blue's Birthday
Diffstat (limited to 'engines')
-rw-r--r--engines/scumm/he/script_v60he.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/scumm/he/script_v60he.cpp b/engines/scumm/he/script_v60he.cpp
index cf7d9fbd2f..dbeee567bf 100644
--- a/engines/scumm/he/script_v60he.cpp
+++ b/engines/scumm/he/script_v60he.cpp
@@ -94,6 +94,12 @@ int ScummEngine_v60he::convertFilePath(byte *dst, int dstSize) {
debug(1, "convertFilePath: original filePath is %s", dst);
int len = resStrLen(dst);
+
+ // Switch all \ to / for portablity
+ for (int i = 0; i < len; i++)
+ if (dst[i] == '\\')
+ dst[i] = '/';
+
if (_game.platform == Common::kPlatformMacintosh) {
// Remove : prefix in HE71 games
if (dst[0] == ':') {
@@ -107,12 +113,6 @@ int ScummEngine_v60he::convertFilePath(byte *dst, int dstSize) {
if (dst[i] == ':')
dst[i] = '/';
}
- } else {
- // Switch all \ to / for portablity
- for (int i = 0; i < len; i++) {
- if (dst[i] == '\\')
- dst[i] = '/';
- }
}
// Strip path