COMMON: Fix handling of / that caused The 7 colors to fail

Implicit conversion of string to path caused splitting by / instead of
intended by DIR_SEPARATOR
This commit is contained in:
Vladimir Serbinenko 2022-12-09 01:25:10 +01:00 committed by Eugene Sandulenko
parent 91865f04a5
commit 602eeec387

View File

@ -309,7 +309,7 @@ void FSDirectory::cacheDirectoryRecursive(FSNode node, int depth, const Path& pr
Common::toPrintable(name).c_str());
}
}
cacheDirectoryRecursive(*it, depth - 1, _flat ? prefix : lowercaseName + DIR_SEPARATOR);
cacheDirectoryRecursive(*it, depth - 1, _flat ? prefix : Common::Path(lowercaseName + DIR_SEPARATOR, DIR_SEPARATOR));
_subDirCache[lowercaseName] = *it;
}
} else {