mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-21 01:08:25 +00:00
MOHAWK: Skip CD-ROM titles in LB paths
svn-id: r54885
This commit is contained in:
parent
26c3705152
commit
9e483b79ce
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user