MOHAWK: Strip slashes from beginning of LB Windows paths.

This commit is contained in:
Alyssa Milburn 2011-03-30 21:41:11 +02:00
parent 40d922206b
commit 023cb90842

View File

@ -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