From 69f6e41f32fb3988122c17c4e4a3f262f6181459 Mon Sep 17 00:00:00 2001 From: Aleksey Komarov Date: Mon, 4 Jul 2022 19:57:19 +0300 Subject: [PATCH] [linux] fix XI_FindFolders in Linux This fixes reading user/save profiles in Linux --- src/libs/xinterface/src/string_service/str_service.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/xinterface/src/string_service/str_service.cpp b/src/libs/xinterface/src/string_service/str_service.cpp index 07797c9eb..4f0433748 100644 --- a/src/libs/xinterface/src/string_service/str_service.cpp +++ b/src/libs/xinterface/src/string_service/str_service.cpp @@ -1356,7 +1356,7 @@ uint32_t _InterfaceFindFolders(VS_STACK *pS) return IFUNCRESULT_FAILED; } const char *sFindTemplate = pDat->GetString(); - std::filesystem::path p = std::filesystem::u8path(sFindTemplate); + std::filesystem::path p = std::filesystem::u8path(fio->ConvertPathResource(sFindTemplate)); const auto mask = p.filename().string(); const auto vFilenames = fio->_GetPathsOrFilenamesByMask(p.remove_filename().string().c_str(), mask.c_str(), false, true, false);