MOHAWK: Skip CD-ROM titles in LB paths

svn-id: r54885
This commit is contained in:
Alyssa Milburn 2010-12-12 19:00:53 +00:00
parent 26c3705152
commit 9e483b79ce

View File

@ -623,7 +623,15 @@ Common::String MohawkEngine_LivingBooks::convertMacFileName(const Common::String
Common::String MohawkEngine_LivingBooks::convertWinFileName(const Common::String &string) {
Common::String filename;
for (uint32 i = 0; i < string.size(); i++) {
uint32 i = 0;
if (string.hasPrefix("//")) {
// skip "//CD-ROM Title/" prefixes which we don't care about
i = 3;
while (i < string.size() && string[i - 1] != '/')
i++;
}
for (; i < string.size(); i++) {
if (string[i] == '\\')
filename += '/';
else