From 602eeec387e2a880c3a0122a2c1bcc910d169e8a Mon Sep 17 00:00:00 2001 From: Vladimir Serbinenko Date: Fri, 9 Dec 2022 01:25:10 +0100 Subject: [PATCH] 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 --- common/fs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/fs.cpp b/common/fs.cpp index 6785e2ec0af..cb67c45b12f 100644 --- a/common/fs.cpp +++ b/common/fs.cpp @@ -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 {