[Scummvm-cvs-logs] scummvm master -> 023cb90842fde98e3cfa78ab8278b2c984c7cea2

fuzzie fuzzie at fuzzie.org
Wed Mar 30 21:42:39 CEST 2011


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
023cb90842 MOHAWK: Strip slashes from beginning of LB Windows paths.


Commit: 023cb90842fde98e3cfa78ab8278b2c984c7cea2
    https://github.com/scummvm/scummvm/commit/023cb90842fde98e3cfa78ab8278b2c984c7cea2
Author: Alyssa Milburn (fuzzie at fuzzie.org)
Date: 2011-03-30T12:41:13-07:00

Commit Message:
MOHAWK: Strip slashes from beginning of LB Windows paths.

Changed paths:
    engines/mohawk/livingbooks.cpp



diff --git a/engines/mohawk/livingbooks.cpp b/engines/mohawk/livingbooks.cpp
index 99f69c2..20bedf8 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






More information about the Scummvm-git-logs mailing list