aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorAlyssa Milburn2011-03-30 21:41:11 +0200
committerAlyssa Milburn2011-03-30 21:41:13 +0200
commit023cb90842fde98e3cfa78ab8278b2c984c7cea2 (patch)
treeb19bfdfe42a004a86999f9b0c241b452af7c6e99 /engines
parent40d922206bbbd23e3b55dd43432042b0fc2af1ed (diff)
downloadscummvm-rg350-023cb90842fde98e3cfa78ab8278b2c984c7cea2.tar.gz
scummvm-rg350-023cb90842fde98e3cfa78ab8278b2c984c7cea2.tar.bz2
scummvm-rg350-023cb90842fde98e3cfa78ab8278b2c984c7cea2.zip
MOHAWK: Strip slashes from beginning of LB Windows paths.
Diffstat (limited to 'engines')
-rw-r--r--engines/mohawk/livingbooks.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/mohawk/livingbooks.cpp b/engines/mohawk/livingbooks.cpp
index 99f69c2ae6..20bedf8be7 100644
--- a/engines/mohawk/livingbooks.cpp
+++ b/engines/mohawk/livingbooks.cpp
@@ -763,6 +763,8 @@ Common::String MohawkEngine_LivingBooks::convertWinFileName(const Common::String
Common::String filename;
for (uint32 i = 0; i < string.size(); i++) {
+ if (i == 0 && (string[i] == '/' || string[i] == '\\')) // ignore slashes at start
+ continue;
if (string[i] == '\\')
filename += '/';
else